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
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
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | php |
Weaknesses
- CWE-400 Uncontrolled Resource Consumption
Affected Products
| Product | Versions |
|---|---|
PHPPHP Group |
|
References
- https://github.com/php/php-src/security/advisories/GHSA-fjp9-9hwx-59fq
- http://www.openwall.com/lists/oss-security/2024/04/12/11
- https://security.netapp.com/advisory/ntap-20240510-0011/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/
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.