Skip to main content
CVE-2024-2757VulnerabilityPublished Updated

CVE-2024-2757: PHP · Vulnerability

Affects PHPSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High : upgrade to 8.3.5 soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.9% chance of exploitation in 30 days – higher than 79% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 8.3.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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-25.

What to do

Upgrade php/php-src to 8.3.5.

Affected software

ProductAffectedFixed in
GitHubphp/php-srcpkg:github/php/php-srcOther threatsAffected
  • <8.3.5 >=8.3.0
Fixed in
  • 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

1. Upgrade PHP to version 8.3.5 or later as soon as it is released by the PHP Group, since this will contain the official fix for the vulnerability. 2. In the interim, implement input validation and sanitization to detect and block unusually long strings of non-space characters followed by a space in inputs processed by mb_encode_mimeheader(). 3. Employ web application firewalls (WAFs) with custom rules to detect and mitigate suspicious payloads targeting this function. 4. Monitor application logs and network traffic for signs of repeated or anomalous requests that could indicate exploitation attempts. 5. Limit exposure of PHP-based services to the internet where possible, using network segmentation and access controls. 6. Conduct code reviews to identify any direct or indirect usage of mb_encode_mimeheader() and assess if alternative encoding methods can be used temporarily. 7. Prepare incident response plans for potential DoS attacks, including resource scaling and failover strategies. 8. Stay informed via official PHP security announcements and CVE databases to apply patches promptly.

Description

In PHP 8.3.* before 8.3.5, function mb_encode_mimeheader() runs endlessly for some inputs that contain long strings of non-space characters followed by a space. This could lead to a potential DoS attack if a hostile user sends data to an application that uses this function.

References

Community reviews

Loading reviews…