5.4

CVE-2026-104259: ModSecurity: removeComments Transformation Fails to Strip Adjacent Comments, Enabling WAF Rule Bypass

Deferred
AliasesUBUNTU-CVE-2026-104259DEBIAN-CVE-2026-104259
Published 09-11-2026Last modified 10-11-2026

Vulnerability summary

CVE-2026-104259 is a medium (CVSS 5.4) vulnerability in owasp-modsecurity modsecurity. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 21.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.4/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.28%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 09-11-2026
    PublishedVulnerability first disclosed.
  2. 10-11-2026
    Last modifiedVulnerability information updated.

Description

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Prior to 2.9.15 and 3.0.17, msre_fn_removeComments_execute in apache2/re_tfns.c and inplace() in src/actions/transformations/remove_comments.cc implement t:removeComments by copying the character immediately after a comment terminator without re-evaluating it. Adjacent comments can therefore leave a later comment in the transformed value, allowing inline-comment obfuscation to bypass rules that depend on comment stripping. When a comment terminator is the final content, the same copy reads one byte beyond the input buffer. This issue is fixed in versions 2.9.15 and 3.0.17.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.28%

Chance of exploitation in the next 30 days

Percentile

22%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

10-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian2 products
  • modsecurityAll versions (No fix recorded)
  • modsecurity-apacheAll versions (No fix recorded)
Ubuntu2 products
  • modsecurityAll versions (No fix recorded)
  • modsecurity-apacheAll versions (No fix recorded)
Owasp-modsecurity1 product

3 vendors · 5 products

References

9 links