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

# CVE-2009-5031

Publication date 22 July 2012

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

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

Toggle side navigation

## Description

ModSecurity before 2.5.11 treats request parameter values containing single
quotes as files, which allows remote attackers to bypass filtering rules
and perform other attacks such as cross-site scripting (XSS) attacks via a
single quote in a request parameter in the Content-Disposition field of a
request with a multipart/form-data Content-Type header.

### From the Ubuntu Security Team

ModSecurity Multipart Quote Parsing Security Bypass Vulnerability

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| libapache-mod-security | 12.10 quantal | Not in release |
| 12.04 LTS precise | Not in release |
| 11.10 oneiric | Not affected |
| 11.04 natty | Ignored end of life |
| 10.04 LTS lucid | Fixed 2.5.11-1 |
| 8.04 LTS hardy | Not in release |
| modsecurity-apache | 12.10 quantal | Not affected |
| 12.04 LTS precise | Not affected |
| 11.10 oneiric | Not affected |
| 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-2009-5031?format=md#patch-details)

### 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 |
| --- | --- |
| libapache-mod-security | * Upstream:   <https://www.modsecurity.org/fisheye/browse/modsecurity/m2/branches/2.5.x/apache2/msc_multipart.c?r2=1419&r1=1366> |
| modsecurity-apache | * Upstream:   <https://www.modsecurity.org/fisheye/browse/modsecurity/m2/branches/2.5.x/apache2/msc_multipart.c?r2=1419&r1=1366> |

## References

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

### Other references

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