CVE-2015-4024: Algorithmic Complexity DoS in PHP multipart_buffer_headers
- Vendors
- Red HatOracle CorporationApplePHP GroupHewlett Packard Enterprise
CVE-2015-4024 is an algorithmic complexity vulnerability in the multipart_buffer_headers function in main/rfc1867.c in PHP before versions 5.4.41, 5.5.25, and 5.6.9. The vulnerability arises from improper handling of crafted form data during multipart/form-data parsing, leading to an order-of-growth issue in the parsing algorithm. An attacker can supply specially crafted form data that triggers worst-case performance in the multipart_buffer_headers function, causing excessive CPU consumption on the target system.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A remote attacker can exploit this vulnerability by submitting specially crafted multipart/form-data to a PHP application, causing the PHP process to consume excessive CPU resources. This can result in a denial of service (DoS) condition, making the affected web application or server unresponsive to legitimate users. The attack does not require authentication and can be performed remotely, making it a significant risk for public-facing PHP applications that handle file uploads or form submissions.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict or disable file uploads and multipart/form-data handling in PHP applications exposed to untrusted users. Employ rate limiting and request size limits at the web server or application level to reduce the impact of potential DoS attempts. Monitor server resource usage for abnormal spikes that may indicate exploitation attempts.
Remediation
Patch, then assume compromise.
Upgrade PHP to version 5.4.41, 5.5.25, 5.6.9, or later. These versions include a fix for the algorithmic complexity issue in multipart_buffer_headers. Ensure that all PHP installations, especially those exposed to untrusted input via file uploads or forms, are updated. Review application code to ensure that user-supplied form data is handled securely and consider implementing web application firewalls to mitigate similar input-based DoS attacks.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2015-4024 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2015-4024 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2015-4024?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2015-4024.
- Is there a patch for CVE-2015-4024?
- Upgrade PHP to version 5.4.41, 5.5.25, 5.6.9, or later. These versions include a fix for the algorithmic complexity issue in multipart_buffer_headers.
- What products are affected by CVE-2015-4024?
- PHP Group Php, Red Hat Enterprise Linux Desktop, Red Hat Enterprise Linux Hpc Node, Red Hat Enterprise Linux Hpc Node Eus, Red Hat Enterprise Linux Server, and 7 more.
- How severe is CVE-2015-4024?
- CVE-2015-4024 has a CVSS v2 score of 5.0 (Medium) and an EPSS score of 41.8% (99th percentile) as of Oct 16, 2026.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.