# CVE-2025-49125: Apache Tomcat: Security constraint bypass for pre/post-resources

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.72% (percentile 78, 2026-11-26)
- **CWE:** CWE-288
- **Aliases:** BIT-tomcat-2025-49125, GHSA-wc4r-xq3c-5cf3
- **Published:** 2025-06-16T14:18:09.610Z
- **Modified:** 2026-09-10T03:50:26.000Z

## Who should check

- Projects that depend on Maven package org.apache.tomcat:tomcat-catalina (\>= 11.0.0-M1, \< 11.0.8)
- Projects that depend on Maven package org.apache.tomcat.embed:tomcat-embed-core (\>= 11.0.0-M1, \< 11.0.8)
- Anyone running Apache Software Foundation Apache Tomcat \>= 11.0.0-M1, \<= 11.0.7; \>= 10.1.0-M1, \<= 10.1.41; \>= 9.0.0.M1, \<= 9.0.105; \>= 8.5.0, \<= 8.5.100

## 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 and fixed versions

- Maven `org.apache.tomcat:tomcat-catalina`: affected \>= 11.0.0-M1, \< 11.0.8; fixed 11.0.8, 10.1.42, 9.0.106 (osv)
- Maven `org.apache.tomcat.embed:tomcat-embed-core`: affected \>= 11.0.0-M1, \< 11.0.8; fixed 11.0.8, 10.1.42, 9.0.106 (osv)
- Apache Software Foundation Apache Tomcat: \>= 11.0.0-M1, \<= 11.0.7; \>= 10.1.0-M1, \<= 10.1.41; \>= 9.0.0.M1, \<= 9.0.105; \>= 8.5.0, \<= 8.5.100 (cvelist)

## Mitigation

- Upgrade org.apache.tomcat:tomcat-catalina to one of 11.0.8, 10.1.42, 9.0.106 (or later in the same release line).
- Upgrade org.apache.tomcat.embed:tomcat-embed-core to one of 11.0.8, 10.1.42, 9.0.106 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-49125. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-49125.md
Affected: org.apache.tomcat:tomcat-catalina >= 11.0.0-M1, < 11.0.8; org.apache.tomcat.embed:tomcat-embed-core >= 11.0.0-M1, < 11.0.8
Fixed in: 11.0.8, 10.1.42, 9.0.106

Steps:
1. Search this machine and project for org.apache.tomcat:tomcat-catalina (Maven), org.apache.tomcat.embed:tomcat-embed-core (Maven), Apache Software Foundation Apache Tomcat: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-49125 being exploited?

There is no confirmed exploitation: CVE-2025-49125 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.72% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-49125?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-49125?

org.apache.tomcat:tomcat-catalina \>= 11.0.0-M1, \< 11.0.8; org.apache.tomcat.embed:tomcat-embed-core \>= 11.0.0-M1, \< 11.0.8.

### Is there a fix for CVE-2025-49125?

Yes. Fixed in 11.0.8, 10.1.42, 9.0.106. Upgrade org.apache.tomcat:tomcat-catalina to one of 11.0.8, 10.1.42, 9.0.106 (or later in the same release line). Upgrade org.apache.tomcat.embed:tomcat-embed-core to one of 11.0.8, 10.1.42, 9.0.106 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-49125?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/m66cytbfrty9k7dc4cg6tl1czhsnbywk>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-49125>
- patch: <https://github.com/apache/tomcat/commit/7617b9c247bc77ed0444dd69adcd8aa48777886c>
- patch: <https://github.com/apache/tomcat/commit/9418e3ff9f1f4c006b4661311ae9376c52d162b9>
- patch: <https://github.com/apache/tomcat/commit/d94bd36fb7eb32e790dae0339bc249069649a637>
- other: <http://www.openwall.com/lists/oss-security/2025/06/16/2>
- other: <https://lists.debian.org/debian-lts-announce/2025/07/msg00009.html>
- other: <https://github.com/apache/tomcat>
- other: <https://tomcat.apache.org/security-10.html>
- other: <https://tomcat.apache.org/security-11.html>
- other: <https://tomcat.apache.org/security-9.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-49125>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-wc4r-xq3c-5cf3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-49125> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-49125>
