Description
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. From 3.0.0 until 3.0.17, ModSecurity's multipart parser does not apply the RFC 2231 filename* parameter precedence used by common Go, Python, Node.js, and Java application parsers. A Content-Disposition header can provide a benign filename parameter for ModSecurity and a different encoded filename* value that the backend prefers, causing MULTIPART_FILENAME rules and the application to make security decisions on different names. Applications that use the backend-selected name for storage, extension checks, or content-type inference can therefore receive a filename that bypassed WAF inspection. PHP's native multipart parser is not affected by this discrepancy. This issue is fixed in version 3.0.17.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| owasp-modsecurity | ModSecurity | >= 3.0.0, < 3.0.17 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | modsecurity +1 | No fix yet | — |
| Debian 13 | modsecurity +1 | No fix yet | — |
| Debian 12 | modsecurity +1 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | modsecurity +1 | No fix yet | — |
| Ubuntu 26.04 LTS | modsecurity +1 | No fix yet | — |
| Ubuntu 24.04 LTS | modsecurity | No fix yet | — |
| Ubuntu 22.04 LTS | modsecurity | No fix yet | — |
| Ubuntu 20.04 LTS | modsecurity | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | modsecurity-apache | No fix yet | — |
| Ubuntu Pro 22.04 LTS | modsecurity-apache | No fix yet | — |
| Ubuntu Pro 20.04 LTS | modsecurity-apache | No fix yet | — |
| Ubuntu Pro 18.04 LTS | modsecurity-apache | No fix yet | — |
| Ubuntu Pro 16.04 LTS | modsecurity-apache | No fix yet | — |
| Ubuntu Pro 14.04 LTS | modsecurity-apache | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | mod_security +1 | 2.9.15-1.amzn2023.0.1 | ALAS2023-2026-3247 |
| Amazon Linux 2 | mod_security +1 | 2.9.15-1.amzn2.0.1 | ALAS2-2026-4010 |
Advisories 3
- WID-SEC-2026-3666 OWASP ModSecurity: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 9, 2026
- ALAS2023-2026-3247 Important: mod_security security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 26, 2026
- ALAS2-2026-4010 Important: mod_security security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 26, 2026
References
- https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-5pww-8rfg-9crf
- https://github.com/owasp-modsecurity/ModSecurity/commit/463db0c840fa27bfba095b0406a63004a12884b0
- https://github.com/owasp-modsecurity/ModSecurity/commit/c6bd53d2dd96766b3afdc35d9929ebb20925d13d
- https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v2.9.15
- https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v3.0.17