password_verify() always returns true for some invalid hashes

Summary

CVECVE-2023-0567
StatePUBLISHED
Assignerphp
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-03-01 08:15:11 UTC
Updated2026-07-19 19:16:26 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 6.2 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Problem Types: CWE-916 | n/a | CWE-916 CWE-916 Use of Password Hash With Insufficient Computational Effort


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary6.2MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
3.1ADPDECLARED8.1HIGHCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.1[email protected]Secondary7.7HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary8.1HIGHCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.1CNACVSS7.7HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Php Php All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA PHP Group PHP affected 8.0.* 8.0.28 semver Not specified
CNA PHP Group PHP affected 8.1.* 8.1.16 semver Not specified
CNA PHP Group PHP affected 8.2.* 8.2.3 semver Not specified

References

ReferenceSourceLinkTags
BCrypt hashes erroneously validate if the salt is cut short by `$` · Advisory · php/php-src · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Exploit, Vendor Advisory
security.netapp.com/advisory/ntap-20230331-0008 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
PHP :: Sec Bug #81744 :: Password_verify() always return true with some hash af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Tim Düsterhus (en)

CNA: tech at mkdgs dot fr (en)

Legacy QID Mappings

  • 161008 Oracle Enterprise Linux Security Update for Hypertext Preprocessor (PHP) (ELSA-2023-5926)
  • 161015 Oracle Enterprise Linux Security Update for php:8.0 (ELSA-2023-5927)
  • 161313 Oracle Enterprise Linux Security Update for php:8.1 (ELSA-2024-0387)
  • 181613 Debian Security Update for php7.3 (DLA 3345-1)
  • 181663 Debian Security Update for php7.4 (DSA 5363-1)
  • 182679 Debian Security Update for php8.2 (CVE-2023-0567)
  • 199197 Ubuntu Security Notification for Hypertext Preprocessor (PHP) Vulnerabilities (USN-5902-1)
  • 199496 Ubuntu Security Notification for Hypertext Preprocessor (PHP) Vulnerability (USN-6053-1)
  • 242223 Red Hat Update for Hypertext Preprocessor (PHP) (RHSA-2023:5926)
  • 242227 Red Hat Update for php:8.0 (RHSA-2023:5927)
  • 242739 Red Hat Update for php:8.1 (RHSA-2024:0387)
  • 283742 Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2023-d12ff09d38)
  • 283743 Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2023-452714dbc6)
  • 355229 Amazon Linux Security Advisory for php8.1 : ALAS2023-2023-139
  • 356062 Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALASPHP8.1-2023-002
  • 356064 Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALASPHP8.0-2023-002
  • 356074 Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALASPHP8.2-2023-001
  • 356077 Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALASPHP8.2-2023-001
  • 356082 Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALASPHP8.0-2023-002
  • 356090 Amazon Linux Security Advisory for Hypertext Preprocessor (PHP) : ALAS2PHP8.1-2023-002
  • 502663 Alpine Linux Security Update for php8
  • 502679 Alpine Linux Security Update for php81
  • 502708 Alpine Linux Security Update for php7
  • 502911 Alpine Linux Security Update for php81
  • 503215 Alpine Linux Security Update for php82
  • 505790 Alpine Linux Security Update for php81
  • 506155 Alpine Linux Security Update for php82
  • 673101 EulerOS Security Update for Hypertext Preprocessor (PHP) (EulerOS-SA-2023-2196)
  • 753778 SUSE Enterprise Linux Security Update for php7 (SUSE-SU-2023:0476-1)
  • 753786 SUSE Enterprise Linux Security Update for php74 (SUSE-SU-2023:0515-1)
  • 753787 SUSE Enterprise Linux Security Update for php7 (SUSE-SU-2023:0514-1)
  • 905643 Common Base Linux Mariner (CBL-Mariner) Security Update for Hypertext Preprocessor (PHP) (13740)
  • 906518 Common Base Linux Mariner (CBL-Mariner) Security Update for Hypertext Preprocessor (PHP) (13740-1)
  • 906636 Common Base Linux Mariner (CBL-Mariner) Security Update for Hypertext Preprocessor (PHP) (13740-3)
  • 941313 AlmaLinux Security Update for php:8.0 (ALSA-2023:5927)
  • 941321 AlmaLinux Security Update for Hypertext Preprocessor (PHP) (ALSA-2023:5926)
  • 941553 AlmaLinux Security Update for php:8.1 (ALSA-2024:0387)
  • 961052 Rocky Linux Security Update for Hypertext Preprocessor (PHP) (RLSA-2023:5926)
  • 961062 Rocky Linux Security Update for php:8.0 (RLSA-2023:5927)
  • 961115 Rocky Linux Security Update for php:8.1 (RLSA-2024:0387)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report