---
title: "CVE-2012-2335\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2012-2335?format=md
keywords: index, follow
---

# CVE-2012-2335

Publication date 11 May 2012

Last updated 24 July 2024

---

Ubuntu priority

**Negligible**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## Description

php-wrapper.fcgi does not properly handle command-line arguments, which
allows remote attackers to bypass a protection mechanism in PHP 5.3.12 and
5.4.2 and execute arbitrary code by leveraging improper interaction between
the PHP sapi/cgi/cgi\_main.c component and a query string beginning with a
+- sequence.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2012-2335?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php5 | 12.04 LTS precise | Fixed 5.3.10-1ubuntu3.2 |
| 11.10 oneiric | Fixed 5.3.6-13ubuntu3.8 |
| 11.04 natty | Fixed 5.3.5-1ubuntu7.10 |
| 10.04 LTS lucid | Fixed 5.3.2-1ubuntu4.17 |
| 8.04 LTS hardy | Fixed 5.2.4-2ubuntu5.25 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2012-2335?format=md#patch-details)

## Notes

---

### [sbeattie](https://launchpad.net/~sbeattie)

we gave a bit of advice in CVE-2012-2311 about this issue

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

this is a further mitigation

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| php5 | * Upstream:   <http://git.php.net/?p=php-src.git;a=commitdiff;h=000e84aa88ce16deabbf61e7086fc8db63ca88aa> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2335)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2012-2335)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2012-2335)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2012-2335)

### Related Ubuntu Security Notices (USN)

+ [USN-1481-1](https://usn.ubuntu.com/USN-1481-1)
+ PHP vulnerabilities
+ 19 June 2012

### Other references

* <http://www.openwall.com/lists/oss-security/2012/05/09/9>
* <https://www.cve.org/CVERecord?id=CVE-2012-2335>
