CVE-2023-0567
password_verify() always returns true for some invalid hashes
- State
- Published
- Severity
- 7.7 High
- Published
- Feb 16, 2023
- Updated
- Jul 19, 2026
- Reserved
- Jan 29, 2023
Description
In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, password_verify() function may accept some invalid Blowfish hashes as valid. If such invalid hash ever ends up in the password database, it may lead to an application allowing any password for this entry as valid.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.7 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | php |
| 3.1 | 8.1 High | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | CISA-ADP |
Weaknesses
- CWE-916 Use of Password Hash With Insufficient Computational Effort
Affected Products
| Product | Versions |
|---|---|
PHPPHP Group |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.