CVE-2024-3096: PHP · Improper Input Validation
Affects PHPSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium · fixed in 8.3.5 : update PHP when convenient.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 1.4% chance of exploitation in 30 days – higher than 73% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.3.5, 8.2.18, 8.1.28
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 14 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade php/php-src to 8.3.5, 8.2.18 or 8.1.28.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubphp/php-srcpkg:github/php/php-srcOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade PHP to versions 8.1.28, 8.2.18, or 8.3.5 or later, where this vulnerability is fixed. In addition to patching, organizations should audit their user databases to identify any password hashes starting with a null byte and reset those passwords to prevent exploitation. Implement additional authentication controls such as multi-factor authentication (MFA) to reduce the risk of unauthorized access even if password verification is bypassed. Review and harden input validation and sanitization processes in authentication workflows to prevent malformed or malicious inputs. Monitor authentication logs for unusual login attempts with blank passwords or other anomalous patterns. Conduct penetration testing focused on authentication bypass scenarios to validate the effectiveness of mitigations. Finally, ensure that development teams are aware of this vulnerability and avoid creating password hashes with null byte prefixes in custom implementations.
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.
References
- github.com/php/php-src/security/advisories/GHSA-h746-cjrr-wfmr (opens in a new tab)
- openwall.com/lists/oss-security/2024/04/12/11 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/05/msg00005.html (opens in a new tab)
- security.netapp.com/advisory/ntap-20240510-0010/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/ (opens in a new tab)