Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.tomcat.embed/tomcat-embed-core
  4. ›
  5. CVE-2025-49125

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

June 16, 2025 (updated August 8, 2025)

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.

References

  • github.com/advisories/GHSA-wc4r-xq3c-5cf3
  • github.com/apache/tomcat
  • github.com/apache/tomcat/commit/7617b9c247bc77ed0444dd69adcd8aa48777886c
  • github.com/apache/tomcat/commit/9418e3ff9f1f4c006b4661311ae9376c52d162b9
  • github.com/apache/tomcat/commit/d94bd36fb7eb32e790dae0339bc249069649a637
  • lists.apache.org/thread/m66cytbfrty9k7dc4cg6tl1czhsnbywk
  • nvd.nist.gov/vuln/detail/CVE-2025-49125
  • tomcat.apache.org/security-10.html
  • tomcat.apache.org/security-11.html
  • tomcat.apache.org/security-9.html

Code Behaviors & Features

Detect and mitigate CVE-2025-49125 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 9.0.0.M1 before 9.0.106, all versions starting from 8.5.0 up to 8.5.100, all versions starting from 10.1.0-M1 before 10.1.42, all versions starting from 11.0.0-M1 before 11.0.8

Fixed versions

  • 11.0.8
  • 10.1.42
  • 9.0.106

Solution

Upgrade to versions 10.1.42, 11.0.8, 9.0.106 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-288: Authentication Bypass Using an Alternate Path or Channel

Source file

maven/org.apache.tomcat.embed/tomcat-embed-core/CVE-2025-49125.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:46 +0000.