Skip to content
OpenAdvisories
Unscored Public exploit CVE-2012-0830 EUVD-2012-0856GHSA-4pjr-p785-567f

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 conta…

Published Feb 6, 2012 · Updated Aug 6, 2024 · Assigned by redhat

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 6.0 php5 5.3.3-7+squeeze7 DSA-2403-1
Debian 5.0 php5 5.2.6.dfsg.1-1+lenny16 DSA-2403-1
ReleasePackageFixed inAdvisory
RHEL 6 php +25 5.3.3-3.el6_2.6 RHSA-2012:0093
RHEL 5 php +18 5.1.6-27.el5_7.5 RHSA-2012:0093
RHEL 5 php53 +20 5.3.3-1.el5_7.6 RHSA-2012:0092
RHEL 4 php +13 4.3.9-3.36 RHSA-2012:0093
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php5 5.6.28-1.1 openSUSE-SU-2024:10344-1
openSUSE Tumbleweed php7 7.0.14-1.4 openSUSE-SU-2024:10290-1
openSUSE Tumbleweed php8 8.0.11-1.1 openSUSE-SU-2024:11169-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 6

References