CVE-2026-52747 ModSecurity: Multipart form-data parser silently strips embedded line breaks from form-field values, enabling request-body inspection bypass
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- NginxUbuntuDebianRed Hat
Description
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Prior to 3.0.16, the multipart/form-data request body parser in libmodsecurity silently removes embedded line breaks from non-file form-field values before exporting them to ARGS and ARGS_POST because src/request_body_processor/multipart.cc overwrites reserved bytes in m_reserve instead of appending the current buffer. This creates a parser differential between ModSecurity and backend applications that preserve line breaks in form fields, allowing rules that inspect ARGS or ARGS_POST to miss payloads whose dangerous syntax depends on a line break. This issue is fixed in version 3.0.16.
Upgrade path
11 packages: 3 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/modsecurity(Debian 12) | = 3.0.9-1; = 3.0.9-1+deb12u1; = 3.0.9-1+deb12u2; = 3.0.10-1 +9 more | No fix listed | No fix yet |
| redhat/mod_security(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/mod_security(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| ubuntu/modsecurity(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/modsecurity(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/modsecurity(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/modsecurity(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/modsecurity(Debian 13) | < 3.0.14-1+deb13u2; = 3.0.14-1; = 3.0.14-1+deb13u1 | 3.0.14-1+deb13u2 | Fixed |
| debian/modsecurity(Debian 14) | < 3.0.16-1; = 3.0.14-1; = 3.0.15-1 | 3.0.16-1 | Fixed |
| owasp modsecurity | < 3.0.16 | 3.0.16 | Fixed |
| owasp-modsecurity ModSecurity | = < 3.0.16 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| owasp-modsecurity ModSecurity | = < 3.0.16 | No fix listed |
| redhat/mod_security(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/mod_security(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/mod_security(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.10) | All versions | No fix listed |
| owasp modsecurity | < 3.0.16 | 3.0.16 |
| debian/modsecurity(Debian:12) | All versions | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.10-1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.11-1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.12-1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.12-1.1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.12-1.1~exp1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.13-1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.14-1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.15-1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.16-1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.9-1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.9-1+deb12u1 | No fix listed |
| debian/modsecurity(Debian:12) | = 3.0.9-1+deb12u2 | No fix listed |
| debian/modsecurity(Debian:13) | < 3.0.14-1+deb13u2 | 3.0.14-1+deb13u2 |
| debian/modsecurity(Debian:13) | = 3.0.14-1 | No fix listed |
| debian/modsecurity(Debian:13) | = 3.0.14-1+deb13u1 | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/modsecurity(Debian:14) | < 3.0.16-1 | 3.0.16-1 |
| debian/modsecurity(Debian:14) | = 3.0.14-1 | No fix listed |
| debian/modsecurity(Debian:14) | = 3.0.15-1 | No fix listed |
References
- https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-rcw9-2f5r-7p88 exploit mitigation vendor-advisory
- https://github.com/owasp-modsecurity/ModSecurity/commit/875504c2758169c41be1ad2f0cc64d896b7815d7 patch
- https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v3.0.16 product release-notes
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2499232 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-52747 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking