CVE-2024-3096

PHP function password_verify can erroneously return true when argument contains NUL

MEDIUM
6.5
CVSS Score
Published: April 29, 2024 at 03:42 AM UTC
Updated: June 17, 2026 at 07:43 AM UTC
2 products affected across 2 vendorsDebian LinuxPHP

Using PHP by PHP Group?

Get instant alerts when new vulnerabilities affect PHP - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.5
Exploit prediction
EPSS 1%
SSVC
No known exploit

Description

In PHP  version 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, if a password stored with password_hash() starts with a null byte (\x00), testing a blank string as the password via password_verify() will incorrectly return true.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

PHP· PHPdrupal
95%
8.1.* ≤ v < 8.1.288.1.0 ≤ v < 8.1.288.2.* ≤ v < 8.2.188.2.0 ≤ v < 8.2.188.3.* ≤ v < 8.3.58.3.0 ≤ v < 8.3.58.1.*8.1.08.2.*8.2.08.3.*8.3.0
Affected range stops below 8.1.28, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.2.18, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.3.5, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.5MEDIUMphp
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-20NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card