All vulnerabilities

Servers and applications

CVE-2024-3096

In PHP  version 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, if a password stored with password_hash() starts with a null byte (\x00), testing a blank string as the password via password_verify() will incorrectly return true.

Severity
Medium 6.5
Published
29 Apr 2024
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
8.1.28, 8.2.18, 8.3.5
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 8.1.0 before 8.1.28
  • From 8.2.0 before 8.2.18
  • From 8.3.0 before 8.3.5

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2024-3096
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2024-3096