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.
Affected software
| Software | Affected versions |
|---|---|
ModSecurityServers and applications · cpe:a:owasp:modsecurity |
|
ModSecurityServers and applications · github:owasp-modsecurity/modsecurity |
|
About ModSecurity
web application firewall (WAF) module
- 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
Website Source code Docker image
Vulnerabilities in ModSecurity
- In our list
- 36
- Published in the last 12 months
- 12
- Critical, last 12 months
- 0
- High, last 12 months
- 6
- Known exploited
- 0
- CVE-2026-61813ModSecurity: Incorrect libcurl TLS hostname verification setting in HttpsClient::downloadLow 3.7 5 Nov 2026
- CVE-2026-104269RFC 2231 `filename*` Parameter Bypasses Multipart Filename Rules on RFC-Compliant Backends (Go, Python, Node, Java)High 8.6 30 Sept 2026
- GHSA-4j47-8qcr-jf59`t:base64DecodeExt` silently discards the entire decoded value on a malformed base64 padding group, bypassing rule matchingMedium 5.8 30 Sept 2026
- CVE-2026-104259removeComments Transformation Fails to Strip Adjacent Comments, Enabling WAF Rule BypassMedium 5.4 30 Sept 2026
- CVE-2026-103932PCRE2 `@rxGlobal` match-limit errors are converted to no-matchMedium 5.8 30 Sept 2026
- CVE-2026-73857ModSecurity v3 XML Request Body Processor Uninitialized Pointer Dereference VulnerabilityHigh 7.5 30 Sept 2026
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