CVE-2024-2757

PHP mb_encode_mimeheader runs endlessly for some inputs

State
Published
Severity
7.5 High
Published
Apr 29, 2024
Updated
Nov 4, 2025
Reserved
Mar 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hphp

Weaknesses

  • CWE-400 Uncontrolled Resource Consumption

Affected Products

ProductVersions
PHPPHP Group
  • 8.3.* to before 8.3.5Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.