Authentication bypass via dollar-truncated BCrypt salt
Published Feb 16, 2023 · Updated Jul 19, 2026
Improper BCrypt hash validation in PHP 8.0 before 8.0.28, 8.1 before 8.1.16, and 8.2 before 8.2.3 allows attackers to bypass authentication. The crypt_blowfish salt parser accepts an embedded dollar sign as an early terminator, then fixed-size copying and length handling return the malformed setting unchanged for a successful comparison. An invalid BCrypt hash must reach the application's password store; password_verify() then accepts any password for that entry.
Summary
What happened
Improper BCrypt hash validation in PHP 8.0 before 8.0.28, 8.1 before 8.1.16, and 8.2 before 8.2.3 allows attackers to bypass authentication. The crypt_blowfish salt parser accepts an embedded dollar sign as an early terminator, then fixed-size copying and length handling return the malformed setting unchanged for a successful comparison. An invalid BCrypt hash must reach the application's password store; password_verify() then accepts any password for that entry.
The record
- CVE
- CVE-2023-0567
- Published
- Feb 16, 2023
- Updated
- Jul 19, 2026
- Vendor
- The PHP Group
- Product
- PHP
- Classifications
- CWE-916, T1190
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 16, 2023CVE publishedPublication date reported by the CVE source.
- Jul 19, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=8.0.* <8.0.28
- Affected versionversion=8.1.* <8.1.16
- Affected versionversion=8.2.* <8.2.3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA malformed BCrypt hash proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo