CVE-2024-3096

Medium

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductPhp
PublishedApr 29, 2024
First seenApr 29, 2024

How to fix

Update
  • php php8.1.28, 8.2.18, 8.3.5 or later

Affected products

ProductAffected versionsFixed in
php php8.1.0 ≤ v < 8.1.28, 8.2.0 ≤ v < 8.2.18, 8.3.0 ≤ v < 8.3.58.1.28, 8.2.18, 8.3.5
debian debian_linux10.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.