Skip to main content
CVE-2024-2756VulnerabilityPublished Updated

CVE-2024-2756: PHP · Improper Input Validation

Affects PHPSource CVE Database V5

0

Mentioned vulnerabilities

Not known to be exploited · 38% EPSS · CVSS 6.5 Medium · fixed in 8.4.0 : 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
38.1% chance of exploitation in 30 days – higher than 98% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 8.4.0, 8.3.0, 8.2.0 +1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Apr 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 debian/php to 8.4.0, 8.3.0, 8.2.0 or 8.1.0.

Affected software

ProductAffectedFixed in
Debiandebian/phppkg:deb/debian/phpOther threatsAffected
  • <8.1.0
  • <8.2.0
  • <8.3.0
  • <8.4.0
Fixed in
  • 8.1.0
  • 8.2.0
  • 8.3.0
  • 8.4.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. 2. Conduct a thorough audit of all web applications using affected PHP versions to identify usage of __Host- and __Secure- cookies and verify correct handling and validation of cookie attributes. 3. Implement server-side validation to reject or sanitize cookies that do not conform to expected security attributes, preventing acceptance of insecure cookies masquerading as secure. 4. Use web application firewalls (WAFs) to detect and block suspicious cookie-setting attempts that exploit this vulnerability. 5. Educate developers and administrators about the importance of proper cookie attribute enforcement and the risks posed by this vulnerability. 6. 7. Employ Content Security Policy (CSP) and SameSite cookie attributes to reduce the risk of cross-site attacks that could facilitate exploitation. 8. Regularly review logs for unusual cookie-setting patterns or repeated failed attempts to exploit this vulnerability.

Description

Due to an incomplete fix to CVE-2022-31629 https://github.com/advisories/GHSA-c43m-486j-j32p , network and same-site attackers can set a standard insecure cookie in the victim's browser which is treated as a __Host- or __Secure- cookie by PHP applications.

References

Community reviews

Loading reviews…