# CVE-2024-2757: PHP mb_encode_mimeheader runs endlessly for some inputs

- Severity: High 7.5 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.92%, higher than 80% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-29T03:49:15.519Z
- Modified: 2026-09-08T08:48:18.268Z
- Also known as: BIT-LIBPHP-2024-2757, BIT-PHP-2024-2757, BIT-PHP-MIN-2024-2757, GHSA-fjp9-9hwx-59fq
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: php

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

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.3.* before 8.3.5
- php_group php: 8.3
- php php: from 8.3.0 before 8.3.5
- libphp (Bitnami): from 8.3.0 before 8.3.5
- php (Bitnami): from 8.3.0 before 8.3.5
- php-min (Bitnami): from 8.3.0 before 8.3.5

## Every score

- php: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/php/php-src/security/advisories/GHSA-fjp9-9hwx-59fq> (exploit, advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/04/12/11> (discussion, mailing-list)
- <https://security.netapp.com/advisory/ntap-20240510-0011/> (advisory, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-2757> (web)

## Sources

- CVE List: [CVE-2024-2757](https://www.cve.org/CVERecord?id=CVE-2024-2757), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-2757](https://nvd.nist.gov/vuln/detail/CVE-2024-2757), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2024-2757](https://osv.dev/vulnerability/BIT-LIBPHP-2024-2757), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2024-2757](https://osv.dev/vulnerability/BIT-PHP-2024-2757), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2024-2757](https://osv.dev/vulnerability/BIT-PHP-MIN-2024-2757), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-2757 · Whole record: https://cve.day/CVE-2024-2757.json · Rebuilt by cve.day 2026-11-25T22:58:39.663Z
