What’s Vulnerable › Vulnerabilities

CVE-2023-0567: password_verify() always returns true for some invalid hashes

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.

Affected products

How to fix

Upgrade to a fixed version: PHP 8.0.28, 8.1.16, 8.2.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-0567 or the next vulnerability affects your stack