CVE-2026-104259
Last modified
CVE-2026-104259 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| owasp-modsecurity | ModSecurity | < 2.9.15; >= 3.0.0, < 3.0.17 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-104259?
How severe is CVE-2026-104259?
How do I fix CVE-2026-104259?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-104203Traccar is an open source GPS tracking system. From 5.1 unti…7.5
- CVE-2026-104204BACnet Stack is a BACnet open source protocol stack C librar…8.7
- CVE-2026-104246The Contact Form 7 Signature Addon WordPress plugin through …5.9
- CVE-2026-104250The unstructured library provides open-source components for…6.1
- CVE-2026-104252Vitess is a database clustering system for horizontal scalin…9.8
- CVE-2026-104254liboqs is a C-language cryptographic library that provides i…5.3
- CVE-2026-104266tinytag is a Python library for reading audio file metadata.…6.5
- CVE-2026-104267Botan is a C++ cryptography library. From 2.7.0 until 3.13.0…4.1
- CVE-2026-104269ModSecurity is an open source, cross platform web applicatio…8.6
- CVE-2026-104286An improper limitation of a pathname to a restricted directo…9.8
- CVE-2026-1043The PostmarkApp Email Integrator plugin for WordPress is vul…4.4
- CVE-2026-104307The BackUpWordPress plugin before 3.15 does not perform a ca…5.4
Are you affected by CVE-2026-104259?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
