All vulnerabilities

Servers and applications

CVE-2026-52747

Multipart form-data parser silently strips embedded line breaks from form-field values, enabling request-body inspection bypass

Severity
High 8.6
Published
29 Jun 2026
Last changed
25 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.0.16
Exploit chance
0.5% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-180
Attack
Over the network · No login needed · No user action needed
Attacker can
Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
Also known as
GHSA-rcw9-2f5r-7p88
Sources
NVD, Project advisories (GitHub)

Description

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. A valid multipart field containing A\r\nB or A\nB is exposed to ModSecurity rules as AB, and the built-in multipart strict-validation variables remain clear.

This creates a parser differential between ModSecurity and backend applications that preserve line breaks in form fields. Rules that inspect ARGS or ARGS_POST can miss payloads whose dangerous syntax depends on a line break, because the line break is removed before rule evaluation.

The root cause is in src/request_body_processor/multipart.cc. When processing non-file form-data, the parser tries to prepend bytes previously held in m_reserve, but immediately overwrites the destination string:

d.assign(&(m_reserve[1]), m_reserve[0]) is lost because the next d.assign(...) replaces the entire string instead of appending the current buffer.

From owasp-modsecurity/ModSecurity's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
ModSecurityServers and applications · cpe:a:owasp:modsecurity
  • Every version before 3.0.16
ModSecurityServers and applications · github:owasp-modsecurity/modsecurity
  • Every version before 3.0.16

About ModSecurity

web application firewall (WAF) module

From Wikidata, CC0 1.0.
Docker Hub pulls
7,086,565Docker Hub, 15 Nov 2026
GitHub stars
9,872GitHub, 15 Nov 2026
Forks
1,761GitHub, 15 Nov 2026
Latest release
v3.0.17GitHub, 15 Nov 2026
Released
29 Sept 2026GitHub
Developer
Trustwave HoldingsWikidata
License
Apache Software License 2.0Wikidata
Written in
CWikidata
First published on GitHub
2 Feb 2011GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-52747
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-52747
  • GitHub Advisory Database https://github.com/advisories/GHSA-rcw9-2f5r-7p88
  • github.com https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-rcw9-2f5r-7p88