CVE-2024-3096CWE-20
PHP function password_verify can erroneously return true when argument contains NUL
Medium · published April 29, 2024
What it is
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.
The record
Technical detail
- CVSS v3.1
- 6.5 · MEDIUM
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- CVSS v4.0
- Not supplied
- EPSS
- 0.01492 · 73.9th percentile
- Weakness
- CWE-20 · Improper Input Validation
- Published
- 2024-04-29T03:42Z
EPSS history
Timeline