6.5

CVE-2024-3096: PHP function password_verify can erroneously return true when argument contains NUL

Modified
AliasesUBUNTU-CVE-2024-3096DEBIAN-CVE-2024-3096ALPINE-CVE-2024-3096
Published 29-04-2024Last modified 04-11-2025

Vulnerability summary

CVE-2024-3096 is a medium (CVSS 6.5) Improper Input Validation vulnerability in debian debian_linux. EPSS estimates a 1.49% chance of exploitation in the next 30 days, higher than 74.1% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.49%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 16 · Related 7

Timeline

  1. 29-04-2024
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

1.49%

Chance of exploitation in the next 30 days

Percentile

74%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.49% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Php Src

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu6 products
  • php5All versions (No fix recorded)
  • php7.0< 7.0.33-0ubuntu0.16.04.16+esm9
  • php7.2< 7.2.24-0ubuntu0.18.04.17+esm3
  • php7.4< 7.4.3-4ubuntu2.22
  • php8.1< 8.1.2-1ubuntu2.17
Alpine3 products
  • php81< 8.1.28-r0
  • php82< 8.2.18-r0
  • php83< 8.3.6-r0 | < 8.3.5-r0
Debian2 products
Php1 product
  • php≥ 8.1.0, < 8.1.28 | ≥ 8.2.0, < 8.2.18 | ≥ 8.3.0, < 8.3.5
Php group1 product
  • php≥ 8.1.*, < 8.1.28 | ≥ 8.2.*, < 8.2.18 | ≥ 8.3.*, < 8.3.5

5 vendors · 13 products

References

13 links
Show all 13 references