CVE-2025-31651
Apache Tomcat: Bypass of rules in Rewrite Valve
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. This 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. Users are recommended to upgrade to version [FIXED_VERSION], which fixes the issue.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 4.263% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T18:36:01.564Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T18:36:01.564Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T18:27:11.950Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:12.371Z | OSV |
| affected | verified | 2026-11-19T12:57:31.510Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:31.510Z | CVE Program |
Affected versions and configuration
Apache Software Foundation Apache Tomcat; default status: unaffected: 11.0.0-M1 to ≤ 11.0.5 [affected; scheme: semver]; 10.1.0-M1 to ≤ 10.1.39 [affected; scheme: semver]; 9.0.0.M1 to ≤ 9.0.102 [affected; scheme: semver]; 8.5.0 to ≤ 8.5.100 [affected; scheme: semver]; 8.0.0.RC1 to < 8.5.0 [unknown; scheme: semver]; 10.0.0-M1 to ≤ 10.0.27 [unknown; scheme: semver]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "Apache Software Foundation",
"product": "Apache Tomcat",
"versions": [
{
"status": "affected",
"version": "11.0.0-M1",
"versionType": "semver",
"lessThanOrEqual": "11.0.5"
},
{
"status": "affected",
"version": "10.1.0-M1",
"versionType": "semver",
"lessThanOrEqual": "10.1.39"
},
{
"status": "affected",
"version": "9.0.0.M1",
"versionType": "semver",
"lessThanOrEqual": "9.0.102"
},
{
"status": "affected",
"version": "8.5.0",
"versionType": "semver",
"lessThanOrEqual": "8.5.100"
},
{
"status": "unknown",
"version": "8.0.0.RC1",
"lessThan": "8.5.0",
"versionType": "semver"
},
{
"status": "unknown",
"version": "10.0.0-M1",
"versionType": "semver",
"lessThanOrEqual": "10.0.27"
}
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2025/04/28/3"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2025/07/msg00009.html"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-03T19:53:12.871Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 9.8,
"attackVector": "NETWORK",
"baseSeverity": "CRITICAL",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-31651",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2025-07-30T03:55:44.862157Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-02-26T18:27:59.801Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-ff77-26x5-69cr",
"aliases": [
"BIT-tomcat-2025-31651",
"CVE-2025-31651"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "9.0.76"
},
{
"fixed": "9.0.104"
}
]
}
],
"package": {
"name": "org.apache.tomcat.embed:tomcat-embed-core",
"purl": "pkg:maven/org.apache.tomcat.embed/tomcat-embed-core",
"ecosystem": "Maven"
},
"versions": [
"9.0.100",
"9.0.102",
"9.0.76",
"9.0.78",
"9.0.79",
"9.0.80",
"9.0.81",
"9.0.82",
"9.0.83",
"9.0.84",
"9.0.85",
"9.0.86",
"9.0.87",
"9.0.88",
"9.0.89",
"9.0.90",
"9.0.91",
"9.0.93",
"9.0.94",
"9.0.95",
"9.0.96",
"9.0.97",
"9.0.98",
"9.0.99"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-ff77-26x5-69cr/GHSA-ff77-26x5-69cr.json",
"last_known_affected_version_range": "<= 9.0.102"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "10.1.10"
},
{
"fixed": "10.1.40"
}
]
}
],
"package": {
"name": "org.apache.tomcat.embed:tomcat-embed-core",
"purl": "pkg:maven/org.apache.tomcat.embed/tomcat-embed-core",
"ecosystem": "Maven"
},
"versions": [
"10.1.10",
"10.1.11",
"10.1.12",
"10.1.13",
"10.1.14",
"10.1.15",
"10.1.16",
"10.1.17",
"10.1.18",
"10.1.19",
"10.1.20",
"10.1.23",
"10.1.24",
"10.1.25",
"10.1.26",
"10.1.28",
"10.1.29",
"10.1.30",
"10.1.31",
"10.1.33",
"10.1.34",
"10.1.35",
"10.1.36",
"10.1.39"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-ff77-26x5-69cr/GHSA-ff77-26x5-69cr.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "11.0.0-M2"
},
{
"fixed": "11.0.6"
}
]
}
],
"package": {
"name": "org.apache.tomcat.embed:tomcat-embed-core",
"purl": "pkg:maven/org.apache.tomcat.embed/tomcat-embed-core",
"ecosystem": "Maven"
},
"versions": [
"11.0.0",
"11.0.0-M10",
"11.0.0-M11",
"11.0.0-M12",
"11.0.0-M13",
"11.0.0-M14",
"11.0.0-M15",
"11.0.0-M16",
"11.0.0-M17",
"11.0.0-M18",
"11.0.0-M19",
"11.0.0-M20",
"11.0.0-M21",
"11.0.0-M22",
"11.0.0-M24",
"11.0.0-M25",
"11.0.0-M26",
"11.0.0-M3",
"11.0.0-M4",
"11.0.0-M5",
"11.0.0-M6",
"11.0.0-M7",
"11.0.0-M9",
"11.0.1",
"11.0.2",
"11.0.3",
"11.0.4",
"11.0.5"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-ff77-26x5-69cr/GHSA-ff77-26x5-69cr.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "8.5.0"
},
{
"last_affected": "8.5.100"
}
]
}
],
"package": {
"name": "org.apache.tomcat.embed:tomcat-embed-core",
"purl": "pkg:maven/org.apache.tomcat.embed/tomcat-embed-core",
"ecosystem": "Maven"
},
"versions": [
"8.5.0",
"8.5.100",
"8.5.11",
"8.5.12",
"8.5.13",
"8.5.14",
"8.5.15",
"8.5.16",
"8.5.19",
"8.5.2",
"8.5.20",
"8.5.21",
"8.5.23",
"8.5.24",
"8.5.27",
"8.5.28",
"8.5.29",
"8.5.3",
"8.5.30",
"8.5.31",
"8.5.32",
"8.5.33",
"8.5.34",
"8.5.35",
"8.5.37",
"8.5.38",
"8.5.39",
"8.5.4",
"8.5.40",
"8.5.41",
"8.5.42",
"8.5.43",
"8.5.45",
"8.5.46",
"8.5.47",
"8.5.49",
"8.5.5",
"8.5.50",
"8.5.51",
"8.5.53",
"8.5.54",
"8.5.55",
"8.5.56",
"8.5.57",
"8.5.58",
"8.5.59",
"8.5.6",
"8.5.60",
"8.5.61",
"8.5.63",
"8.5.64",
"8.5.65",
"8.5.66",
"8.5.68",
"8.5.69",
"8.5.70",
"8.5.71",
"8.5.72",
"8.5.73",
"8.5.75",
"8.5.76",
"8.5.77",
"8.5.78",
"8.5.79",
"8.5.8",
"8.5.81",
"8.5.82",
"8.5.83",
"8.5.84",
"8.5.85",
"8.5.86",
"8.5.87",
"8.5.88",
"8.5.89",
"8.5.9",
"8.5.90",
"8.5.91",
"8.5.92",
"8.5.93",
"8.5.94",
"8.5.95",
"8.5.96",
"8.5.97",
"8.5.98",
"8.5.99"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-ff77-26x5-69cr/GHSA-ff77-26x5-69cr.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-31651",
"type": "ADVISORY"
},
{
"url": "https://github.com/apache/tomcat/commit/066bf6b6a15a4e7e0941d4acf096841165b97098",
"type": "WEB"
},
{
"url": "https://github.com/apache/tomcat/commit/175dc75fc428930034a6c93fb52f830d955d8e64",
"type": "WEB"
},
{
"url": "https://github.com/apache/tomcat/commit/ee3ab548e92345eca0cbd1f01649eb36c6f29454",
"type": "WEB"
},
{
"url": "https://github.com/apache/tomcat/commit/fbecc915a10c5a3d634c5e2c6ced4ff479ce9953",
"type": "WEB"
},
{
"url": "https://github.com/apache/tomcat",
"type": "PACKAGE"
},
{
"url": "https://lists.apache.org/[email protected]",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2025/07/msg00009.html",
"type": "WEB"
},
{
"url": "https://tomcat.apache.org/security-10.html",
"type": "WEB"
},
{
"url": "https://tomcat.apache.org/security-11.html",
"type": "WEB"
},
{
"url": "https://tomcat.apache.org/security-9.html",
"type": "WEB"
},
{
"url": "http://www.openwall.com/lists/oss-security/2025/04/28/3",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-116",
"CWE-150"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2025-04-28T20:15:20Z",
"github_reviewed_at": "2025-04-29T15:03:25Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Maven / package | org.apache.tomcat.embed:tomcat-embed-core | Not a distribution channel | 9.0.104 | Official record |
| ecosystem-boundary | Maven / package | org.apache.tomcat.embed:tomcat-embed-core | Not a distribution channel | 10.1.40 | Official record |
| ecosystem-boundary | Maven / package | org.apache.tomcat.embed:tomcat-embed-core | Not a distribution channel | 11.0.6 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:12.371ZArchived source JSON
Source publication: 2025-04-28T21:30:43.000Z
Source modification: 2026-09-10T03:50:24.113ZDocument fingerprint
09d74c5c68e580b006d45a3a80fe040d121924b77ccd026d366e77109872f2e8 - CVE ProgramConsulted: 2026-11-19T12:57:31.510ZArchived source JSON
Source publication: 2025-04-28T19:17:21.721Z
Source modification: 2026-02-26T18:27:59.801ZDocument fingerprint
f3af0667ecc531bc15a3a01c6d086d4fd26e68d5921db483a8cb53451a77102d - FIRST EPSSConsulted: 2026-11-19T18:27:11.950ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
f828727fd2419e9ee62887077d52e76b99e46a1d7a1ce89e08e7e861a70ba109 - CISA KEVConsulted: 2026-11-19T18:36:01.564ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence