CVEfocus › CVE database › CVE-2026-104259

CVE-2026-104259ModSecurity: removeComments Transformation Fails to Strip Adjacent Comments, Enabling…

CVSS 5.4 MediumEPSS 0.4% (higher than 21% of CVEs)Published 2026-11-09Updated 2026-11-10Assigner: GitHub_M

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.

CWE-670

What to do

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fix pending
4Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10modsecurityFix pendingUBUNTU-CVE-2026-104259
Ubuntu 26.10modsecurity-apacheFix pendingUBUNTU-CVE-2026-104259
Ubuntu 26.04modsecurityUnder investigationUBUNTU-CVE-2026-104259
Ubuntu 26.04modsecurity-apacheUnder investigationUBUNTU-CVE-2026-104259
Ubuntu 24.04modsecurityUnder investigationUBUNTU-CVE-2026-104259
Ubuntu 24.04modsecurity-apacheFix pendingUBUNTU-CVE-2026-104259
Ubuntu 22.04modsecurityUnder investigationUBUNTU-CVE-2026-104259
Ubuntu 22.04modsecurity-apacheFix pendingUBUNTU-CVE-2026-104259
Ubuntu 20.04modsecurityFix pendingUBUNTU-CVE-2026-104259
Ubuntu 20.04modsecurity-apacheFix pendingUBUNTU-CVE-2026-104259
Ubuntu 18.04modsecurity-apacheFix pendingUBUNTU-CVE-2026-104259
Ubuntu 16.04modsecurity-apacheFix pendingUBUNTU-CVE-2026-104259
Ubuntu 14.04modsecurity-apacheFix pendingUBUNTU-CVE-2026-104259
Debian 14modsecurityFix pendingDEBIAN-CVE-2026-104259
Debian 14modsecurity-apacheFix pendingDEBIAN-CVE-2026-104259
Debian 13modsecurityFix pendingDEBIAN-CVE-2026-104259
Debian 13modsecurity-apacheFix pendingDEBIAN-CVE-2026-104259
Debian 12modsecurityFix pendingDEBIAN-CVE-2026-104259
Debian 12modsecurity-apacheFix pendingDEBIAN-CVE-2026-104259

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.