CVE-2024-3096
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| PHP Group | PHP | 8.1.* < 8.1.28 | affected |
| PHP Group | PHP | 8.2.* < 8.2.18 | affected |
| PHP Group | PHP | 8.3.* < 8.3.5 | affected |
Weaknesses
- CWE-20: CWE-20 Improper Input Validation
Workarounds
Pre-filter potential password strings to ensure they do not contain NUL bytes.
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: total
CVE Program Container
Additional References
- https://github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmr
- http://www.openwall.com/lists/oss-security/2024/04/12/11
- https://lists.debian.org/debian-lts-announce/2024/05/msg00005.html
- https://security.netapp.com/advisory/ntap-20240510-0010/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/
References
- https://github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmr
- http://www.openwall.com/lists/oss-security/2024/04/12/11
- https://lists.debian.org/debian-lts-announce/2024/05/msg00005.html
- https://security.netapp.com/advisory/ntap-20240510-0010/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.