---
title: "CVE-2012-2751\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-2751?format=md
keywords: index, follow
---

# CVE-2012-2751

Publication date 22 July 2012

Last updated 4 August 2025

---

Ubuntu priority

**Medium**

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

Toggle side navigation

## Description

ModSecurity before 2.6.6, when used with PHP, does not properly handle
single quotes not at the beginning of a request parameter value in the
Content-Disposition field of a request with a multipart/form-data
Content-Type header, which allows remote attackers to bypass filtering
rules and perform other attacks such as cross-site scripting (XSS) attacks.
NOTE: this vulnerability exists because of an incomplete fix for
CVE-2009-5031.

### From the Ubuntu Security Team

ModSecurity Multipart Quote Parsing Security Bypass Vulnerability

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| libapache-mod-security | 17.04 zesty | Not in release |
| 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 15.04 vivid | Not in release |
| 14.10 utopic | Not in release |
| 14.04 LTS trusty | Not in release |
| 13.10 saucy | Not in release |
| 13.04 raring | Not in release |
| 12.10 quantal | Not in release |
| 12.04 LTS precise | Not in release |
| 11.10 oneiric | Fixed 2.5.12-1+squeeze1build0.11.10.1 |
| 11.04 natty | Fixed 2.5.12-1+squeeze1build0.11.04.1 |
| 10.04 LTS lucid | Fixed 2.5.11-1ubuntu0.1 |
| 8.04 LTS hardy | Not in release |
| modsecurity-apache | 17.04 zesty | Not affected |
| 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Not affected |
| 15.10 wily | Not affected |
| 15.04 vivid | Not affected |
| 14.10 utopic | Not affected |
| 14.04 LTS trusty | Not affected |
| 13.10 saucy | Not affected |
| 13.04 raring | Not affected |
| 12.10 quantal | Not affected |
| 12.04 LTS precise | Ignored end of life |
| 11.10 oneiric | Ignored end of life |
| 11.04 natty | Not in release |
| 10.04 LTS lucid | Not in release |
| 8.04 LTS hardy | Not in release |

---

* [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-2751?format=md#patch-details)

## Notes

---

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

Versions older than 2.6.6 are affected

### 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 |
| --- | --- |
| modsecurity-apache | * Upstream:   [d3ad05e](https://github.com/SpiderLabs/ModSecurity/commit/d3ad05e9c9ef9db05d683730719cb7ca63309389) * Upstream:   [988e78e](https://github.com/SpiderLabs/ModSecurity/commit/988e78e9ab6c42d2dba8ce5b310e11282566daff) |

## References

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

### Other references

* <https://secunia.com/advisories/49576/>
* <https://www.cve.org/CVERecord?id=CVE-2012-2751>
