CVE-2023-0567

password_verify() always returns true for some invalid hashes

Published Feb 16, 2023 CVSS 3.1 · 7.7 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3345-1 php7.3 security update
Debian DSA Debian DSA DSA-5363-1 php7.4 security update
EUVD EUVD EUVD-2023-12609 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. 
Ubuntu USN Ubuntu USN USN-5902-1 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-6053-1 PHP vulnerability
History
Type Values Removed Values Added
CPEs cpe:2.3:a:php_group:php:8.0.0:*:*:*:*:*:*:*
cpe:2.3:a:php_group:php:8.1.0:*:*:*:*:*:*:*
cpe:2.3:a:php_group:php:8.2.0:*:*:*:*:*:*:*
Vendors & Products Php Group
Php Group php
Type Values Removed Values Added
First Time appeared Php Group
Php Group php
CPEs cpe:2.3:a:php_group:php:8.0.0:*:*:*:*:*:*:*
cpe:2.3:a:php_group:php:8.1.0:*:*:*:*:*:*:*
cpe:2.3:a:php_group:php:8.2.0:*:*:*:*:*:*:*
Vendors & Products Php Group
Php Group php
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.  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.
Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Jul 19, 2026, 6:24 PM
Reserved
Jan 29, 2023, 7:45 AM
Status
Modified
Published
Mar 1, 2023, 8:15 AM
Modified
Jul 19, 2026, 7:16 PM
Severity
Low
Public date
Feb 15, 2023, 12:00 AM