8.6high
ModSecurity: Multipart form-data parser silently strips embedded line breaks from form-field values, enabling request-body inspection bypass
- Severity
- 8.6high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.52% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-MODSECURITY-2026-52747GHSA-rcw9-2f5r-7p88BIT-MODSECURITY2-2026-52747
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| owasp-modsecurity ModSecurity | < 3.0.16 | CVE List |
| owasp modsecurity | before 3.0.16 | NVD |
| modsecurity (Bitnami) | before 3.0.16 | Bitnami Vulnerability Database |
| modsecurity2 (Bitnami) | before 3.0.16 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| NVD | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
ModSecurity es un motor de cortafuegos de aplicaciones web (WAF) de código abierto y multiplataforma para Apache, IIS y Nginx. Antes de la versión 3.0.16, el analizador del cuerpo de la solicitud multipart/form-data en libmodsecurity elimina silenciosamente los saltos de línea incrustados de los valores de campos de formulario que no son archivos antes de exportarlos a ARGS y ARGS_POST porque src/request_body_processor/multipart.cc sobrescribe los bytes reservados en m_reserve en lugar de añadir el búfer actual. Esto crea un diferencial de analizador entre ModSecurity y las aplicaciones de backend que preservan los saltos de línea en los campos de formulario, permitiendo que las reglas que inspeccionan ARGS o ARGS_POST pasen por alto cargas útiles cuya sintaxis peligrosa depende de un salto de línea. Este problema se solucionó en la versión 3.0.16.
References
| https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-rcw9-2f5r-7p88 | advisory, exploit, mitigation, vendor-advisory, web | |
| https://github.com/owasp-modsecurity/ModSecurity/commit/875504c2758169c41be1ad2f0cc64d896b7815d7 | fix, patch, web | |
| https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v3.0.16 | article, product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-52747 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-52747 changed 2026-07-13 | CVE Terms of Use |
| NVD | CVE-2026-52747 changed 2026-10-25 | Public domain |
| Bitnami Vulnerability Database | BIT-MODSECURITY-2026-52747 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-MODSECURITY2-2026-52747 changed 2026-07-21 | Apache-2.0 |