{"id":"CVE-2025-31651","aliases":["CVE-2025-31651","GHSA-ff77-26x5-69cr","BIT-TOMCAT-2025-31651"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Tomcat: Bypass of rules in Rewrite Valve","summary":"Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in Apache Tomcat. For a subset of unlikely rewrite rule configurations, it was possible \nfor a specially crafted request to bypass some rewrite rules. If those \nrewrite rules effectively enforced security constraints, those \nconstraints could be bypassed.\n\nThis issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.5, from 10.1.0-M1 through 10.1.39, from 9.0.0.M1 through 9.0.102.\nThe following versions were EOL at the time the CVE was created but are \nknown to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions \nmay also be affected.\n\n\nUsers are recommended to upgrade to version [FIXED_VERSION], which fixes the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in Apache Tomcat. For a subset of unlikely rewrite rule configurations, it was possible \nfor a specially crafted request to bypass some rewrite rules. If those \nrewrite rules effectively enforced security constraints, those \nconstraints could be bypassed.\n\nThis issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.5, from 10.1.0-M1 through 10.1.39, from 9.0.0.M1 through 9.0.102.\nThe following versions were EOL at the time the CVE was created but are \nknown to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions \nmay also be affected.\n\n\nUsers are recommended to upgrade to version [FIXED_VERSION], which fixes the issue.","source":"cvelist"},{"lang":"en","text":"Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in Apache Tomcat. For a subset of unlikely rewrite rule configurations, it was possible for a specially crafted request to bypass some rewrite rules. If those rewrite rules effectively enforced security constraints, those constraints could be bypassed.\n\nThis issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.5, from 10.1.0-M1 through 10.1.39, from 9.0.0.M1 through 9.0.102. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected.\n\nUsers are recommended to upgrade to version 9.0.104, 10.1.40 or 11.0.6, which fix the issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Vulnerabilidad de neutralización incorrecta de secuencias de escape, metadatos o de control en Apache Tomcat. En un subconjunto de configuraciones improbables de reglas de reescritura, una solicitud especialmente manipulada podía eludir algunas reglas de reescritura. Si dichas reglas aplicaban restricciones de seguridad de forma eficaz, estas podían eludirse. Este problema afecta a Apache Tomcat: de la 11.0.0-M1 a la 11.0.5, de la 10.1.0-M1 a la 10.1.39 y de la 9.0.0.M1 a la 9.0.102. Se recomienda a los usuarios actualizar a la versión [FIXED_VERSION], que soluciona el problema.","source":"nvd"},{"lang":"en","text":"Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in Apache Tomcat. For a subset of unlikely rewrite rule configurations, it was possible \nfor a specially crafted request to bypass some rewrite rules. If those \nrewrite rules effectively enforced security constraints, those \nconstraints could be bypassed.\n\nThis issue affects Apache Tomcat: from 11.0.0 through 11.0.5, from 10.1.0 through 10.1.39, from 9.0.0 through 9.0.102.\nThe following versions were EOL at the time the CVE was created but are \nknown to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions \nmay also be affected.\n\n\nUsers are recommended to upgrade to version [FIXED_VERSION], which fixes the issue.","format":"markdown","source":"bitnami"}],"published":"2025-04-28T19:17:21.721Z","modified":"2026-09-10T03:50:24.113Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-116","CWE-150"],"affected":[{"ranges":[{"type":"semver","introduced":"11.0.0-M1","lastAffected":"11.0.5","status":"affected"},{"type":"semver","introduced":"10.1.0-M1","lastAffected":"10.1.39","status":"affected"},{"type":"semver","introduced":"9.0.0.M1","lastAffected":"9.0.102","status":"affected"},{"type":"semver","introduced":"8.5.0","lastAffected":"8.5.100","status":"affected"},{"type":"semver","introduced":"8.0.0.RC1","fixed":"8.5.0","status":"unknown"},{"type":"semver","introduced":"10.0.0-M1","lastAffected":"10.0.27","status":"unknown"}],"vendor":"Apache Software Foundation","product":"Apache Tomcat","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"9.0.76","status":"affected","fixed":"9.0.104"}],"ecosystem":"Maven","package":"org.apache.tomcat:tomcat-catalina","purl":"pkg:maven/org.apache.tomcat/tomcat-catalina","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.1.10","status":"affected","fixed":"10.1.40"}],"ecosystem":"Maven","package":"org.apache.tomcat:tomcat-catalina","purl":"pkg:maven/org.apache.tomcat/tomcat-catalina","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"11.0.0-M2","status":"affected","fixed":"11.0.6"}],"ecosystem":"Maven","package":"org.apache.tomcat:tomcat-catalina","purl":"pkg:maven/org.apache.tomcat/tomcat-catalina","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.0.76","status":"affected","fixed":"9.0.104"}],"ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.1.10","status":"affected","fixed":"10.1.40"}],"ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"11.0.0-M2","status":"affected","fixed":"11.0.6"}],"ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.5.0","status":"affected","lastAffected":"8.5.100"}],"ecosystem":"Maven","package":"org.apache.tomcat:tomcat-catalina","purl":"pkg:maven/org.apache.tomcat/tomcat-catalina","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.5.0","status":"affected","lastAffected":"8.5.100"}],"ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"9.0.0","fixed":"9.0.104"},{"status":"affected","introduced":"10.1.0","fixed":"10.1.40"},{"status":"affected","introduced":"11.0.0","fixed":"11.0.6"}],"vendor":"apache","product":"tomcat","cpe":"cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.0.104"},{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.1.40"},{"type":"semver","introduced":"11.0.0","status":"affected","fixed":"11.0.6"}],"ecosystem":"Bitnami","package":"tomcat","purl":"pkg:bitnami/tomcat","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/list.html?announce@tomcat.apache.org","tags":["advisory","mailing-list","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2025/04/28/3","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00009.html","tags":["web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31651","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/tomcat/commit/066bf6b6a15a4e7e0941d4acf096841165b97098","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat/commit/175dc75fc428930034a6c93fb52f830d955d8e64","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat/commit/ee3ab548e92345eca0cbd1f01649eb36c6f29454","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat/commit/fbecc915a10c5a3d634c5e2c6ced4ff479ce9953","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat","tags":["package"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-10.html","tags":["web"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-11.html","tags":["web"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-9.html","tags":["web"],"sources":["ghsa"]}],"credits":["COSCO Shipping Lines DIC"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-07-30T03:55:44.862Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-31651","url":"https://www.cve.org/CVERecord?id=CVE-2025-31651","licence":"CVE Terms of Use","modified":"2026-02-26T18:27:59.801Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ff77-26x5-69cr","url":"https://github.com/advisories/GHSA-ff77-26x5-69cr","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:24.113Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-31651","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31651","licence":"Public domain","modified":"2026-06-17T09:10:44.123Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-TOMCAT-2025-31651","url":"https://osv.dev/vulnerability/BIT-TOMCAT-2025-31651","licence":"Apache-2.0","modified":"2026-09-08T08:48:20.953Z"}],"updatedAt":"2026-11-25T22:58:57.032Z","epss":{"score":0.04347,"percentile":0.9144,"date":"2026-12-01T12:00:22.000Z"}}