CVE-2009-5031

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.

Published: 2012-07-22 Last update: 2026-04-29 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2009-5031 is rated Moderate Risk (42.1/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.80%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2009-5031

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-07-08 1.46% 0.80% -0.66%
2 2025-03-30 1.25% 1.46% +0.21%
3 2025-03-29 1.25%

Full EPSS history (6 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2009-5031

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
4.3 2.0 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:N)
No confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:N)
No availability impact.
8.6 2.9 [email protected]

Weakness enumeration for CVE-2009-5031

OS Trackers for CVE-2009-5031

vendor priority summary link
debian unimportant CVE-2009-5031 unimportant priority: Debian including 1 source packages (modsecurity-apache), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2009-5031
suse medium https://www.suse.com/security/cve/CVE-2009-5031/
ubuntu medium CVE-2009-5031 medium priority: Ubuntu including 2 source packages (libapache-mod-security, modsecurity-apache), 14 status rows across 7 suites (hardy, lucid, natty, oneiric, precise, quantal, upstream): DNE 6, not-affected 4, released 3, ignored 1. https://ubuntu.com/security/CVE-2009-5031

Affected software / configurations for CVE-2009-5031

Vendor Product Version Raw CPE
trustwave modsecurity < 2.5.11 cpe:2.3:a:trustwave:modsecurity:*:*:*:*:*:*:*:*
opensuse opensuse 11.4 cpe:2.3:o:opensuse:opensuse:11.4:*:*:*:*:*:*:*
opensuse opensuse 12.2 cpe:2.3:o:opensuse:opensuse:12.2:*:*:*:*:*:*:*
opensuse opensuse 12.3 cpe:2.3:o:opensuse:opensuse:12.3:*:*:*:*:*:*:*

References for CVE-2009-5031

URL Tags
http://blog.ivanristic.com/2012/06/modsecurity-and-modsecurity-core-rule-set-multipart-bypasses.html Third Party Advisory
http://lists.opensuse.org/opensuse-updates/2013-08/msg00020.html Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-updates/2013-08/msg00025.html Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-updates/2013-08/msg00031.html Mailing List Third Party Advisory
http://mod-security.svn.sourceforge.net/viewvc/mod-security/m2/branches/2.6.x/CHANGES Broken Link
http://secunia.com/advisories/49576 Third Party Advisory
http://www.openwall.com/lists/oss-security/2012/06/22/1 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2012/06/22/2 Mailing List Third Party Advisory
http://www.securityfocus.com/bid/54156 Third Party Advisory VDB Entry
http://www.suspekt.org/downloads/POC2009-ShockingNewsInPHPExploitation.pdf Third Party Advisory
https://www.modsecurity.org/fisheye/browse/modsecurity/m2/branches/2.5.x/apache2/msc_multipart.c?r2=1419&r1=1366 Broken Link
cvelogic Threat Intelligence