CVE-2024-3096

MEDIUMCVSS 6.5/10EPSS 1.48%

Last modified

CVE-2024-3096 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.. EPSS estimates a 1.48% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
6.5/10

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

EPSS Probability
1.48%

70.6th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PhpPhp>= 8.1.0, < 8.1.28
PhpPhp>= 8.2.0, < 8.2.18
PhpPhp>= 8.3.0, < 8.3.5
DebianDebian Linux10.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2024-3096?
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.
How severe is CVE-2024-3096?
CVE-2024-3096 has a CVSS score of 6.5/10 (MEDIUM severity). The EPSS model estimates a 1.48% probability of exploitation in the next 30 days.
How do I fix CVE-2024-3096?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-3096?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST