CVE-2024-2757

published 29 Apr 2024 · updated 12 Aug 2026

PHP mb_encode_mimeheader runs endlessly for some inputs

7.5HighCVSS 7.5EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in PHP 8.3.5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=8.3.* <8.3.58.3.5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-2757 severity on Zeptric[![CVE-2024-2757](https://zeptric.io/badge/cve/CVE-2024-2757.svg)](https://zeptric.io/cve/CVE-2024-2757)