Vulnerability · Published Apr 29, 2024 · Assigned by php
CVE-2024-2757PHP mb_encode_mimeheader runs endlessly for some inputs
High 7.5
In plain English
A high-severity uncontrolled resource consumption in PHP from PHP Group. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.9%top 20.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | php83 | 8.3.5-r0 | ALPINE-CVE-2024-2757 |
| Alpine:v3.21 | php83 | 8.3.5-r0 | ALPINE-CVE-2024-2757 |
| Alpine:v3.22 | php83 | 8.3.5-r0 | ALPINE-CVE-2024-2757 |
| Alpine:v3.23 | php83 | 8.3.5-r0 | ALPINE-CVE-2024-2757 |
| Alpine:v3.24 | php83 | 8.3.5-r0 | ALPINE-CVE-2024-2757 |
| Ubuntu:24.04:LTS | php8.3 | 8.3.6-0maysync1 | UBUNTU-CVE-2024-2757 |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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/