{"id":"CVE-2026-104259","aliases":["CVE-2026-104259","BIT-MODSECURITY-2026-104259","BIT-MODSECURITY2-2026-104259"],"related":[],"kind":"vulnerability","state":"published","title":"ModSecurity: removeComments Transformation Fails to Strip Adjacent Comments, Enabling WAF Rule Bypass","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-09T21:37:00.048Z","modified":"2026-11-27T06:45:33.825Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-670"],"affected":[{"ranges":[{"version":"< 2.9.15","status":"affected"},{"version":">= 3.0.0, < 3.0.17","status":"affected"}],"vendor":"owasp-modsecurity","product":"ModSecurity","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.9.15"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.17"}],"ecosystem":"Bitnami","package":"modsecurity","purl":"pkg:bitnami/modsecurity","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.9.15"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.17"}],"ecosystem":"Bitnami","package":"modsecurity2","purl":"pkg:bitnami/modsecurity2","source":"bitnami"}],"references":[{"url":"https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-qrch-pjfr-9g47","tags":["web","x-refsource-confirm"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/owasp-modsecurity/ModSecurity/commit/264f348ae1823cb71cead3650b74c165678a1d46","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/owasp-modsecurity/ModSecurity/commit/49a65f471d3130b91f7fff9bfac9fe8dd9b97c44","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v2.9.15","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v3.0.17","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104259","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-10T18:18:32.704Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-104259","url":"https://www.cve.org/CVERecord?id=CVE-2026-104259","licence":"CVE Terms of Use","modified":"2026-11-10T19:07:18.936Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-104259","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104259","licence":"Public domain","modified":"2026-11-12T22:18:51.470Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MODSECURITY-2026-104259","url":"https://osv.dev/vulnerability/BIT-MODSECURITY-2026-104259","licence":"Apache-2.0","modified":"2026-11-27T06:45:33.825Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MODSECURITY2-2026-104259","url":"https://osv.dev/vulnerability/BIT-MODSECURITY2-2026-104259","licence":"Apache-2.0","modified":"2026-11-27T06:45:32.517Z"}],"updatedAt":"2026-11-27T07:07:29.961Z","epss":{"score":0.00279,"percentile":0.21795,"date":"2026-12-01T12:00:22.000Z"}}