CVE-2023-0567
password_verify() always returns true for some invalid hashes
Reported by php · Published February 16, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php8.1-pdo | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-ldap | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-fpm | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1 | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-mbstring | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php | Bitnami | 8.2.3, 8.1.16, 8.0.28 |
| php8.1-cli | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-opcache | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-mysqlnd | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-process | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-devel | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-pgsql | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
26 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.0.*, 8.1.*, 8.2.* |
| PHP Group | PHP | 8.0.*, 8.1.*, 8.2.* |
Timeline
- Feb 14, 2023 CVE Published
- Feb 16, 2023 EPSS Score (30 in total, the first dated here)
- Jan 27, 2026 PoC Published
- May 22, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (8 in total, the first dated here)
- Nov 22, 2026 Security Advisory (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-0567
vulnetix vdb fixes CVE-2023-0567
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-0567/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart