Resource management error in PHP - CVE-2012-0830

 

Resource management error in PHP - CVE-2012-0830

Published: February 6, 2012 / Updated: August 4, 2020


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

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

The php_register_variable_ex function in php_variables.c in PHP 5.3.9 allows remote attackers to execute arbitrary code via a request containing a large number of variables, related to improper handling of array variables. NOTE: this vulnerability exists because of an incorrect fix for CVE-2011-4885.


Affected software

PHP
Amazon Linux AMI
Gentoo Linux
Slackware Linux
php (Alpine package)
HP-UX Web Server Suite

How to mitigate CVE-2012-0830

Install update from vendor's website.

PHP - update to 5.3.10
php (Alpine package) - update to 5.3.10-r0
HP-UX Web Server Suite - addressed in versions 2.36, 3.24

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins