CVE-2024-2757
PHP vulnerability analysis and mitigation

Overview

CVE-2024-2757 affects PHP versions 8.3.* before 8.3.5, specifically impacting the mbencodemimeheader() function. The vulnerability was discovered and disclosed in April 2024, affecting PHP applications that process email headers using this function (PHP Advisory, OSS Security).

Technical details

The vulnerability occurs when the mbencodemimeheader() function processes inputs containing long strings of non-space characters followed by a space. When encountering such inputs, the function enters an infinite loop and fails to return. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NetApp Advisory).

Impact

The vulnerability can lead to Denial of Service (DoS) attacks if a malicious user sends specifically crafted data to an application that uses the mbencodemimeheader() function. This is particularly concerning as the function is integral to numerous email processing routines, including those handling potentially untrusted user inputs. For example, CakePHP 5 relies on this function to encode email subjects (PHP Advisory).

Mitigation and workarounds

The vulnerability has been fixed in PHP version 8.3.6. All users of PHP 8.3.* versions before 8.3.5 are encouraged to upgrade to this patched version (Security Online).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management