{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-104259","id":"CVE-2026-104259","title":"ModSecurity rule bypass in comment removal","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 theref","descriptionLong":"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.","published":"2026-11-09T21:37:00.048Z","updated":"2026-11-14T07:06:32.898837249Z","reserved":"2026-10-01T19:04:39.706Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["owasp-modsecurity ModSecurity"],"affectedProducts":[{"vendor":"owasp-modsecurity","product":"ModSecurity","defaultStatus":null,"versions":[{"version":"< 2.9.15","status":"affected"},{"version":">= 3.0.0, < 3.0.17","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-670"],"aliases":["GHSA-qrch-pjfr-9g47"],"references":[{"url":"https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-qrch-pjfr-9g47","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/owasp-modsecurity/ModSecurity/commit/264f348ae1823cb71cead3650b74c165678a1d46","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/owasp-modsecurity/ModSecurity/commit/49a65f471d3130b91f7fff9bfac9fe8dd9b97c44","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v2.9.15","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v3.0.17","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104259.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104259","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00223,"epssPercentile":0.13014,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-104259","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104259","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-104259","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-104259","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}