CVE-2026-52747
JSON

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 packageVersionsReported by
owasp-modsecurity ModSecurity< 3.0.16CVE List
owasp modsecuritybefore 3.0.16NVD
modsecurity (Bitnami)before 3.0.16Bitnami Vulnerability Database
modsecurity2 (Bitnami)before 3.0.16Bitnami Vulnerability Database

All scores

GitHub_M8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
NVD8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-180

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

Sources

SourceRecordLicence
CVE ListCVE-2026-52747 changed 2026-07-13CVE Terms of Use
NVDCVE-2026-52747 changed 2026-10-25Public domain
Bitnami Vulnerability DatabaseBIT-MODSECURITY-2026-52747 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-MODSECURITY2-2026-52747 changed 2026-07-21Apache-2.0