Owasp-modsecurity ModSecurity
ModSecurity v3 XML Request Body Processor Uninitialized Pointer Dereference Vulnerability
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. From 3.0.15 until 3.0.17, XML request body processing with SecParseXmlIntoArgs set to On or OnlyArgs can leave XMLNodes::parsing_ctx_arg uninitialized in the SAX end-element callback. A single crafted unauthenticated HTTP request can make a worker dereference the pointer, resulting in a constant-value write to an attacker-controlled address. The resulting memory corruption can terminate the worker and may disclose memory or redirect execution. Earlier 3.0.x releases and ModSecurity 2.x do not use the affected path. This issue is fixed in version 3.0.17.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.0.15, < 3.0.17
Fixed in 3.0.17
Mitigation
Upgrade ModSecurity to 3.0.17 or later.
References
- Vendor advisory github.com/owasp-modsecurity/ModSecurity/secur…
- Patch github.com/owasp-modsecurity/ModSecurity/commi…
- Release notes github.com/owasp-modsecurity/ModSecurity/relea…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.