{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "2.9.15"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "3.0.0"
                  },
                  {
                    "fixed": "3.0.17"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "264f348ae1823cb71cead3650b74c165678a1d46"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "49a65f471d3130b91f7fff9bfac9fe8dd9b97c44"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v2.9.15",
                "range": [
                  {
                    "fixed": "151074aca78a416764b12ba1221e61a17a6c714d"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v3.0.17",
                "range": [
                  {
                    "fixed": "1925753989ccce977cdaae417b55c9726c7cf02c"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "151074aca78a416764b12ba1221e61a17a6c714d"
            },
            {
              "introduced": "c1cd668acb820824e791ba802396c60900eae9c1"
            },
            {
              "fixed": "1925753989ccce977cdaae417b55c9726c7cf02c"
            },
            {
              "fixed": "264f348ae1823cb71cead3650b74c165678a1d46"
            },
            {
              "fixed": "49a65f471d3130b91f7fff9bfac9fe8dd9b97c44"
            }
          ],
          "repo": "https://github.com/owasp-modsecurity/modsecurity",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-qrch-pjfr-9g47"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-670"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104259.json"
  },
  "details": "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.",
  "id": "CVE-2026-104259",
  "modified": "2026-11-14T02:31:04.295119511Z",
  "published": "2026-11-09T21:37:00.048Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v2.9.15"
    },
    {
      "type": "WEB",
      "url": "https://github.com/owasp-modsecurity/ModSecurity/releases/tag/v3.0.17"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104259.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-qrch-pjfr-9g47"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104259"
    },
    {
      "type": "FIX",
      "url": "https://github.com/owasp-modsecurity/ModSecurity/commit/264f348ae1823cb71cead3650b74c165678a1d46"
    },
    {
      "type": "FIX",
      "url": "https://github.com/owasp-modsecurity/ModSecurity/commit/49a65f471d3130b91f7fff9bfac9fe8dd9b97c44"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ModSecurity: removeComments Transformation Fails to Strip Adjacent Comments, Enabling WAF Rule Bypass"
}