Skip to main content
CVE-2024-3096VulnerabilityPublished Updated

CVE-2024-3096: PHP · Improper Input Validation

Affects PHPSource CVE Database V5

0

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

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 May 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubphp/php-srcpkg:github/php/php-srcOther threatsAffected
  • >=8.1.0 <8.1.28
  • >=8.2.0 <8.2.18
  • >=8.3.0 <8.3.5
Fixed in
  • 8.1.28
  • 8.2.18
  • 8.3.5

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

Community reviews

Loading reviews…