Allocation of Resources Without Limits or Throttling in PHP - CVE-2009-4017

 

Allocation of Resources Without Limits or Throttling in PHP - CVE-2009-4017

Published: February 15, 2024 / Updated: June 13, 2025


Vulnerability identifier: #VU110318
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2009-4017
CWE-ID: CWE-770
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to perform service disruption.

PHP before 5.2.12 and 5.3.x before 5.3.1 does not restrict the number of temporary files created when handling a multipart/form-data POST request, which allows remote attackers to cause a denial of service (resource exhaustion), and makes it easier for remote attackers to exploit local file inclusion vulnerabilities, via multiple requests, related to lack of support for the max_file_uploads directive.


Affected software

PHP
Ubuntu
Slackware Linux
php5-cli (Ubuntu package)
php5-cgi (Ubuntu package)
libapache2-mod-php5 (Ubuntu package)
php

How to mitigate CVE-2009-4017

Install update from vendor's website.

PHP - update to 5.3.0
php5-cli (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.17, 5.2.4-2ubuntu5.9, 5.2.6-2ubuntu4.5, 5.2.6.dfsg.1-3ubuntu4.4, 5.2.10.dfsg.1-2ubuntu6.3
php5-cgi (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.17, 5.2.4-2ubuntu5.9, 5.2.6-2ubuntu4.5, 5.2.6.dfsg.1-3ubuntu4.4, 5.2.10.dfsg.1-2ubuntu6.3
libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.17, 5.2.4-2ubuntu5.9, 5.2.6-2ubuntu4.5, 5.2.6.dfsg.1-3ubuntu4.4, 5.2.10.dfsg.1-2ubuntu6.3
php - update to 5.2.12

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins