CVE-2024-3096
criticalpriority · track · 1EPSS 0.015 · 74 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6–9.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (40)
Products and version ranges known to be affected.
advisories (4)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2024-0867PHP: Mehrere SchwachstellenDeutsch2024-04-11csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in PHP ausnutzen, um beliebigen Programmcode auszuführen, Sicherheitsmaßnahmen zu umgehen oder einen Denial-of-Service-Zustand zu verursachen.
- BIT-libphp-2024-3096PHP function password_verify can erroneously return true when argument contains NUL2025-08-11vendor · osvUS
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.
- BIT-php-2024-3096PHP function password_verify can erroneously return true when argument contains NUL2024-05-14vendor · osvUS
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.
- BIT-php-min-2024-3096PHP function password_verify can erroneously return true when argument contains NUL2025-01-14vendor · osvUS
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.
also known as (7)
Other names and identifiers for this entity.
- CNNVD-202404-3498cnnvd
- EUVD-2024-31701enisa_euvd
- BDU:2024-03215fstec_bdu
- BIT-libphp-2024-3096osv
- BIT-php-2024-3096osv
- BIT-php-min-2024-3096osv
- GHSA-h746-cjrr-wfmrosv
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2024/04/12/11cnnvd
- https://cxsecurity.com/cveshow/CVE-2024-3096/cnnvd
- https://github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmrcnnvd
- https://lists.debian.org/debian-lts-announce/2024/05/msg00005.htmlcnnvd
- https://security.netapp.com/advisory/ntap-20240510-0010/cnnvd
- https://vigilance.fr/vulnerability/PHP-user-access-via-password-verify-44056cnnvd
- https://www.php.net/downloads.phpPatchcnnvd
- http://www.openwall.com/lists/oss-security/2024/04/12/11enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan