CVE-2025-49125: Apache Tomcat Remote Code Execution Vulnerability
MODERATECVE-2025-49125 is a MODERATE remote code execution vulnerability (CWE-288: Authentication Bypass Using an Alternate Path or Channel) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves apache tomcat - security constraint bypass for pre/post-resources. Remediation is available by upgrading affected packages to version 11.0.8, 10.1.42, 9.0.106.
CVE-2025-49125 at a Glance
How to Fix CVE-2025-49125
To remediate this vulnerability, upgrade all affected Apache Tomcat dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>11.0.8</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>10.1.42</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>9.0.106</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>11.0.8</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>10.1.42</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>9.0.106</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.tomcat
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-49125, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.tomcat
Analyze the terminal output to locate any version of Apache Tomcat in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.0.8), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.tomcat command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-288: Authentication Bypass Using an Alternate Path or Channel, where the product requires authentication, but the product has an alternate path or channel that does not require authentication. In Apache Tomcat, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-49125 Affected Apache Tomcat Versions
8 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.tomcat:tomcat-catalina
|
Maven |
≥ 11.0.0-M1
< 11.0.8
|
11.0.8
|
|
org.apache.tomcat:tomcat-catalina
|
Maven |
≥ 10.1.0-M1
< 10.1.42
|
10.1.42
|
|
org.apache.tomcat:tomcat-catalina
|
Maven |
≥ 9.0.0.M1
< 9.0.106
|
9.0.106
|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
≥ 11.0.0-M1
< 11.0.8
|
11.0.8
|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
≥ 10.1.0-M1
< 10.1.42
|
10.1.42
|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
≥ 9.0.0.M1
< 9.0.106
|
9.0.106
|
|
org.apache.tomcat:tomcat-catalina
|
Maven |
≥ 8.5.0
≤ 8.5.100
|
|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
≥ 8.5.0
≤ 8.5.100
|
|
References
Frequently Asked Questions
What is CVE-2025-49125?
Which Apache Tomcat versions are affected?
What version fixes CVE-2025-49125?
Is tomcat-catalina affected?
Is tomcat-embed-core affected?
What CWE is associated with CVE-2025-49125?
How can I check Maven dependencies for CVE-2025-49125?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wc4r-xq3c-5cf3",
"modified" : "2025-11-03T23:01:01Z",
"published" : "2025-06-16T15:32:28Z",
"aliases" : [ "CVE-2025-49125" ],
"summary" : "Apache Tomcat - Security constraint bypass for pre/post-resources",
"details" : "Authentication Bypass Using an Alternate Path or Channel vulnerability in Apache Tomcat. When using PreResources or PostResources mounted other than at the root of the web application, it was possible to access those resources via an unexpected path. That path was likely not to be protected by the same security constraints as the expected path, allowing those security constraints to be bypassed.\n\nThis issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.7, from 10.1.0-M1 through 10.1.41, from 9.0.0.M1 through 9.0.105. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 through 8.5.100. Other, older, EOL versions may also be affected.\n\nUsers are recommended to upgrade to version 11.0.8, 10.1.42 or 9.0.106, which fix the issue.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-catalina"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-M1"
}, {
"fixed" : "11.0.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 11.0.7"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-catalina"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.1.0-M1"
}, {
"fixed" : "10.1.42"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 10.1.41"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-catalina"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0.M1"
}, {
"fixed" : "9.0.106"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 9.0.105"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-M1"
}, {
"fixed" : "11.0.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 11.0.7"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.1.0-M1"
}, {
"fixed" : "10.1.42"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 10.1.41"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0.M1"
}, {
"fixed" : "9.0.106"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 9.0.105"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-catalina"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.5.0"
}, {
"last_affected" : "8.5.100"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.5.0"
}, {
"last_affected" : "8.5.100"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49125"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/7617b9c247bc77ed0444dd69adcd8aa48777886c"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/9418e3ff9f1f4c006b4661311ae9376c52d162b9"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/d94bd36fb7eb32e790dae0339bc249069649a637"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/tomcat"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/m66cytbfrty9k7dc4cg6tl1czhsnbywk"
}, {
"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/06/16/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-288" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-16T18:02:12Z",
"nvd_published_at" : "2025-06-16T15:15:24Z"
}
}