Home › Vulnerabilities › owasp-modsecurity
ModSecurity Batch Fixes Memory-Corruption Flaw in XML Parsing and Two Rule-Bypass Bugs
NVD published three ModSecurity WAF vulnerabilities together. The most serious, CVE-2026-73857 (HIGH, CVSS 7.5), affects 3.0.15 through 3.0.17 when XML body parsing is enabled, and can be triggered by one unauthenticated request; two medium-severity transformation flaws allow rule bypasses and are fixed in 2.9.15 and 3.0.17.
What to look into
- 3 vulnerabilities in owasp-modsecurity ModSecurity: 1 high, 2 medium (CVSS up to 7.5).
- None of them is known to be exploited yet.
- Start with CVE-2026-73857 (7.5 high): ModSecurity 3.0.15 to 3.0.17 memory corruption flaw in XML body processing, fixed in 3.0.17. An attacker without an account can exploit this over the network, without any user action.
- 3 of 3 can be attacked over the network without logging in, 3 of them without anyone clicking anything.
- Kinds of flaws: Out-of-bounds Write; Access of Uninitialized Pointer; Always-Incorrect Control Flow Implementation.
Key points
- CVE-2026-73857 (HIGH, 7.5) is a memory-corruption flaw in XML body parsing for ModSecurity 3.0.15 to 3.0.17, reachable by one unauthenticated request.
- CVE-2026-61812 (MEDIUM, 6.3) lets crafted HTML entities bypass rules that depend on htmlEntityDecode.
- CVE-2026-104259 (MEDIUM, 5.4) lets inline comments survive removeComments and includes a one-byte over-read.
- All three are fixed in version 3.0.17; the two transformation flaws are also fixed in 2.9.15.
- The sources do not report active exploitation.
Overview
ModSecurity is an open source web application firewall (WAF) engine that runs with Apache, IIS and Nginx. NVD published three vulnerabilities in the engine on 2026-11-09. They fall into two groups: one memory-safety defect in XML request body handling, and two flaws in how request-inspection transformations decode or strip content, which can let crafted input slip past rules.
Memory corruption in XML body processing
The highest-severity record is CVE-2026-73857, rated HIGH with a CVSS score of 7.5. It affects releases from 3.0.15 up to 3.0.17 when XML request body processing is set to On or OnlyArgs. In that configuration, a parsing context pointer may be left uninitialized in the SAX end-element callback. According to the record, one crafted request sent without authentication could cause a worker to dereference that pointer and write a fixed value to an attacker-chosen address. The advisory says this can crash the worker and may expose memory or redirect execution. Earlier 3.0.x releases and the 2.x line are stated not to use the affected code path.
Rule bypasses through transformations
CVE-2026-61812 (MEDIUM, CVSS 6.3) concerns the HTML entity decoding transformation. The decoder recognizes only a limited set of named entities, so a rule may inspect different bytes than the browser or backend will eventually process. Attackers can use unsupported entity names, including aliases, to hide separators and operators. The v3 decoder also accepts prefix matches rather than requiring an exact name length, which can change invalid longer names into different output. The fix is in 2.9.15 and 3.0.17.
CVE-2026-104259 (MEDIUM, CVSS 5.4) concerns the comment-removal transformation. After a comment terminator, the code copies the next character without checking whether it begins another comment. Adjacent comments can leave a later comment intact, which allows inline-comment obfuscation to get past rules that rely on stripping. The record also notes that when a comment terminator is the last content in the input, the copy reads one byte past the end of the buffer. This is fixed in 2.9.15 and 3.0.17.
Who is affected
Deployments running ModSecurity 3.0.15 through 3.0.17 with XML body parsing enabled are exposed to the memory-corruption issue. The two transformation flaws apply to versions before 2.9.15 and before 3.0.17, so any installation older than those fixed releases is affected by them.
Scope of the records
The sources describe the flaws and their fixes but do not state that any of them has been exploited in the wild, and they do not name specific attackers.
What to do
- Upgrade ModSecurity 3.x installations to 3.0.17 or later, and 2.x installations to 2.9.15 or later.
- Check whether SecParseXmlIntoArgs is set to On or OnlyArgs; if so, prioritize CVE-2026-73857 and the upgrade.
- Review rules that use t:htmlEntityDecode or t:removeComments and test them after patching, since they may have been bypassed.
- Monitor worker crashes and unusual server errors in web server logs until the upgrade is complete.
The 3 vulnerabilities
- CVE-2026-73857 7.5 CVE-2026-73857: ModSecurity 3.0.15 to 3.0.17 memory corruption flaw in XML body processing, fixed in 3.0.17
- CVE-2026-61812 6.3 ModSecurity WAF engine flaw lets encoded HTML entities bypass transformation-based rules (CVE-2026-61812)
- CVE-2026-104259 5.4 CVE-2026-104259: ModSecurity removeComments flaw enables rule bypass and out-of-bounds read
Frequently asked questions
How many owasp-modsecurity ModSecurity vulnerabilities were published on November 9, 2026?
3 vulnerabilities: 1 high, 2 medium, with CVSS scores up to 7.5.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-73857 (CVSS 7.5): ModSecurity 3.0.15 to 3.0.17 memory corruption flaw in XML body processing, fixed in 3.0.17.