What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: PHP 8.3.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-2757 or the next vulnerability affects your stack