CVE-2025-49125
Apache Tomcat - Security constraint bypass for pre/post-resources
Description
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.
This 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.
Users are recommended to upgrade to version 11.0.8, 10.1.42 or 9.0.106, which fix the issue.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.tomcat » tomcat-catalina | >= 8.5.0, <= 8.5.100>= 9.0.0.M1, < 9.0.106>= 10.1.0-M1, < 10.1.42>= 11.0.0-M1, < 11.0.8 | 9.0.106, 10.1.42, 11.0.8 |
| org.apache.tomcat.embed » tomcat-embed-core | >= 8.5.0, <= 8.5.100>= 9.0.0.M1, < 9.0.106>= 10.1.0-M1, < 10.1.42>= 11.0.0-M1, < 11.0.8 | 9.0.106, 10.1.42, 11.0.8 |
Blast radius
69% of the dependent artifacts (18,817) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 23,320 |
| 2 hops | 24,336 |
| 3 hops | 568,374 |
| 4 hops | 540,047 |
| 5 hops | 277,984 |
| 6 hops | 47,189 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.thrift » libthrift1,388 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- org.springframework.boot » spring-boot-starter-thymeleaf1,158 usages
- org.apache.flink » flink-streaming-java982 usages
- org.apache.hbase » hbase-client960 usages
- org.springframework.boot » spring-boot-starter-tomcat901 usages
- org.apache.spark » spark-mllib831 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-49125
- Webhttps://github.com/apache/tomcat/commit/7617b9c247bc77ed0444dd69adcd8aa48777886c
- Webhttps://github.com/apache/tomcat/commit/9418e3ff9f1f4c006b4661311ae9376c52d162b9
- Webhttps://github.com/apache/tomcat/commit/d94bd36fb7eb32e790dae0339bc249069649a637
- Packagehttps://github.com/apache/tomcat
- Webhttps://lists.apache.org/thread/m66cytbfrty9k7dc4cg6tl1czhsnbywk
- Webhttps://lists.debian.org/debian-lts-announce/2025/07/msg00009.html
- Webhttps://tomcat.apache.org/security-10.html
- Webhttps://tomcat.apache.org/security-11.html
- Webhttps://tomcat.apache.org/security-9.html
- Webhttp://www.openwall.com/lists/oss-security/2025/06/16/2
