CVE-2023-0567

published 16 Feb 2023 · updated 19 Jul 2026

password_verify() always returns true for some invalid hashes

7.7HighCVSS 7.7EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in PHP 8.0.28, PHP 8.1.16 and PHP 8.2.3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=8.0.* <8.0.28, >=8.1.* <8.1.16, >=8.2.* <8.2.38.0.28, 8.1.16, 8.2.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-0567 severity on Zeptric[![CVE-2023-0567](https://zeptric.io/badge/cve/CVE-2023-0567.svg)](https://zeptric.io/cve/CVE-2023-0567)