CVE-2023-0567: 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.
Medium CVSS 6.2
- CVE id
- CVE-2023-0567
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| PHP Runtimes and servers |
>= 8.0.0, < 8.0.28 >= 8.1.0, < 8.1.16 >= 8.2.0, < 8.2.3 |
8.0.28, 8.1.16, 8.2.3 |
How to fix it
Upgrade PHP to the fixed release of the line you run: 8.0.28, 8.1.16, 8.2.3.
php --version
- Install the patched PHP release of your minor line (the php image tag or your OS packages) and restart PHP-FPM.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
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.
References
- CVE-2023-0567 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-0567
- Web: https://bugs.php.net/bug.php?id=81744
- Web: https://github.com/php/php-src/security/advisories/GHSA-7fj2-8x79-rjf4
- Web: https://bugs.php.net/bug.php?id=81744
- Web: https://github.com/php/php-src/security/advisories/GHSA-7fj2-8x79-rjf4
- Web: https://security.netapp.com/advisory/ntap-20230331-0008/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.