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

Exp

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.

Published: 2024-04-29 Last update: 2025-11-04 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-3096 is rated High Exploit Risk (68.5/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.07%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-3096

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-3096

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-12-28 0.57% 1.07% +0.49%
2 2025-12-27 1.07% 0.57% -0.49%
3 2025-11-21 1.07%

Full EPSS history (17 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-3096

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.5 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 3.6 [email protected]

Weakness enumeration for CVE-2024-3096

OS Trackers for CVE-2024-3096

vendor priority summary link
alpine medium CVE-2024-3096: 3 source package rows (php81, php82, php83); 12 state rows across 5 repos (3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 12, open 0. https://security.alpinelinux.org/vuln/CVE-2024-3096
debian not yet assigned CVE-2024-3096 not yet assigned priority: Debian including 2 source packages (php7.4, php8.2), 2 status rows across 2 suites (bookworm, bullseye): resolved 2. https://security-tracker.debian.org/tracker/CVE-2024-3096
gentoo high CVE-2024-3096: 1 GLSA(s) (202408-32), 1 atom(s) (dev-lang/php); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2024-3096
redhat low https://access.redhat.com/security/cve/CVE-2024-3096
suse medium CVE-2024-3096 severity moderate: SUSE including 444 source package names (apache2-mod_php7-7.4.33-150200.3.65.1, apache2-mod_php7-7.4.33-150400.4.34.1, …), 1035 product×package rows across 27 product lines (Container bci/php, Container bci/php-apache, … (27 product lines)): Fixed 1035. https://www.suse.com/security/cve/CVE-2024-3096/
ubuntu medium CVE-2024-3096 medium priority: Ubuntu including 7 source packages (php5, php7.0, …), 65 status rows across 11 suites (bionic, focal, jammy, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 50, released 10, needs-triage 5. https://ubuntu.com/security/CVE-2024-3096

Affected software / configurations for CVE-2024-3096

Vendor Product Version Raw CPE
php php >= 8.1.0, < 8.1.28 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.2.0, < 8.2.18 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.3.0, < 8.3.5 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

References for CVE-2024-3096

cvelogic Threat Intelligence