ADVISORIES

CVE Program

CNA-CVE-2023-0567

password_verify() always returns true for some invalid hashes

Details

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 packages

EcosystemPackageAffected versions
PHPphp
From 8.0 before 8.0.28 (fixed in 8.0.28)
From 8.1 before 8.1.16 (fixed in 8.1.16)
From 8.2 before 8.2.3 (fixed in 8.2.3)

References