CVE-2024-2757 json
PHP mb_encode_mimeheader runs endlessly for some inputs
published 2024-04-11 2 y ago modified 2026-09-08 2 mo ago also BIT-libphp-2024-2757 , BIT-php-2024-2757 , BIT-php-min-2024-2757 , EUVD-2024-27701 , GHSA-fjp9-9hwx-59fq
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami libphp 8.3.5
- bitnami php 8.3.5
- bitnami php-min 8.3.5
- PHP Group PHP 8.3.5
- php8.3 Ubuntu 24.04 LTS 8.3.6-0maysync1
ubuntu advisories UBUNTU-CVE-2024-2757
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- php8 openSUSE Tumbleweed 8.3.6-1.1
opensuse advisories openSUSE-SU-2024:13867-1
- php83 Alpine 3.19 8.3.6-r0
- php83 Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 8.3.5-r0
alpine advisories ALPINE-CVE-2024-2757
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-2757 updated cvss 7.5
php: mb_encode_mimeheader runs endlessly for some inputs
-
Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 more Red Hat Enterprise Linux 9 php, php-gd, php-cli, php-dba, php-dbg, php-ffi, +18 more Red Hat Enterprise Linux 10 phpnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.92% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/php/php-src/security/advisories/GHSA-fjp9-9hwx-59fq referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | libphp | >=8.3.0, <8.3.5 |
8.3.5 |
| bitnami | php | >=8.3.0, <8.3.5 |
8.3.5 |
| bitnami | php-min | >=8.3.0, <8.3.5 |
8.3.5 |
Affected products
- PHP Group PHP
- php_group php
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
- Technology feeds
References
-
github.com
/php/php-src/security/advisories/GHSA-fjp9-9hwx-59fq
exploit, vendor-advisory, advisory
-
openwall.com
/lists/oss-security/2024/04/12/11
mailing-list, discussion
-
security.netapp.com
/advisory/ntap-20240510-0011/
third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-2757
web
Sources
- CVE List CVE-2024-2757
- NVD CVE-2024-2757
- OSV BIT-libphp-2024-2757
- OSV BIT-php-2024-2757
- OSV BIT-php-min-2024-2757
- Maintainer advisory GHSA-fjp9-9hwx-59fq
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of php/php-src published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.