CVE-2026-104259: ModSecurity · removeComments Transformation Fails to Strip Adjacent Comments, Enabling WAF Rule Bypass
Affects modsecurity2Source GCVE Database
Not known to be exploited · CVSS 5.4 Medium : upgrade to 3.0.17 or 2.9.15 when convenient.
Data as of 27 Nov 2026, 08:28 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.4 |
|---|
- Patch
- Available – fixed in 3.0.17, 2.9.15
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 9 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade modsecurity2 to 3.0.17 or 2.9.15.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamimodsecurity2pkg:bitnami/modsecurity2Other threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade ModSecurity to version 2.9.15 or later, or 3.0.17 or later, where the issue is fixed. No additional mitigation is required as the patch fully addresses the vulnerability.
Description
ModSecurity versions prior to 2.9.15 and 3.0.17 contain a flaw in the removeComments transformation that fails to properly strip adjacent comments. This allows inline-comment obfuscation to bypass WAF rules that rely on comment removal. Additionally, when a comment terminator is at the end of the input, the code reads one byte beyond the buffer. The issue is fixed in versions 2.9.15 and 3.0.17.
References
- github.com/owasp-modsecurity/ModSecurity/commit/264f348ae1823cb71cead3650b74c165678a1d46 (opens in a new tab)
- github.com/owasp-modsecurity/ModSecurity/commit/49a65f471d3130b91f7fff9bfac9fe8dd9b97c44 (opens in a new tab)
- github.com/owasp-modsecurity/ModSecurity/releases/tag/v2.9.15 (opens in a new tab)
- github.com/owasp-modsecurity/ModSecurity/releases/tag/v3.0.17 (opens in a new tab)
- github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-qrch-pjfr-9g47 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-104259 (opens in a new tab)