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.
Published: 2026-07-10
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The multipart/form-data parser in ModSecurity versions prior to 3.0.16 silently removes embedded line breaks from non-file form-field values, because the parser overwrites reserved bytes instead of appending the current buffer. This behavior triggers a divergence between ModSecurity's view of the request body and that of backend applications that preserve line breaks. As a result, rules that inspect ARGS or ARGS_POST may miss malicious data that relies on line‑break delimiters, allowing attackers to bypass WAF checks that depend on the presence of such characters.

Affected Systems

All installations of ModSecurity version 3.x running on Apache, IIS, or Nginx and using a version earlier than 3.0.16 are affected. The flaw is inherent to the default multipart/form-data parser and does not depend on particular rule sets or configuration tweaks beyond the parser's standard behavior.

Risk and Exploitability

The vulnerability is rated with a CVSS score of 8.6, indicating high severity. The EPSS score is below 1%, pointing to a low likelihood of exploitation at present, and the issue is not listed in the CISA KEV catalog. Based on the description, it is inferred that attackers might exploit the flaw by crafting HTTP POST requests that contain multipart/form-data payloads with line breaks embedded in form-field values, causing those payloads to be silently stripped by ModSecurity while remaining intact in the backend. No special prerequisites beyond sending the crafted request over HTTP to a vulnerable deployment are required.

Generated by OpenCVE AI on July 29, 2026 at 09:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ModSecurity to version 3.0.16 or later on all affected web servers.
  • Ensure the updated ModSecurity module is loaded by reloading or restarting the web server.
  • Review and adjust WAF rule sets to explicitly handle and normalize form-field values containing line breaks, so that inspections are not bypassed by silent removal of those characters.

Generated by OpenCVE AI on July 29, 2026 at 09:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 13 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Modsecurity
Modsecurity modsecurity
Vendors & Products Modsecurity
Modsecurity modsecurity

Sat, 11 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-179
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 10 Jul 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Title ModSecurity: Multipart form-data parser silently strips embedded line breaks from form-field values, enabling request-body inspection bypass
Weaknesses CWE-180
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N'}


Subscriptions

Modsecurity Modsecurity
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-13T17:48:27.282Z

Reserved: 2026-06-08T14:00:43.573Z

Link: CVE-2026-52747

cve-icon Vulnrichment

Updated: 2026-07-13T17:47:03.660Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-10T21:42:11Z

Links: CVE-2026-52747 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T10:00:15Z

Weaknesses
  • CWE-179

    Incorrect Behavior Order: Early Validation

  • CWE-180

    Incorrect Behavior Order: Validate Before Canonicalize