CVE-2025-41242 Details
Description
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant Servlet container. An application can be vulnerable when all the following are true: * the application is deployed as a WAR or with an embedded Servlet container * the Servlet container does not reject suspicious sequences https://jakarta.ee/specifications/servlet/6.1/jakarta-servlet-spec-6.1.html#uri-path-canonicalization * the application serves static resources https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-config/static-resources.html#page-title with Spring resource handling We have verified that applications deployed on Apache Tomcat or Eclipse Jetty are not vulnerable, as long as default security features are not disabled in the configuration. Because we cannot check exploits against all Servlet containers and configuration variants, we strongly recommend upgrading your application.
A path traversal vulnerability has been identified in Spring Framework MVC applications deployed on non-compliant Servlet containers. This vulnerability arises when the application is packaged as a WAR file or uses an embedded Servlet container, and the Servlet container fails to properly sanitize URI path sequences. Additionally, the application must serve static resources through Spring's resource handling. While applications on Apache Tomcat and Eclipse Jetty are not vulnerable if default security settings are maintained, this issue can affect several different versions and ranges of Spring Framework.
Users of Spring Framework versions 6.2.x should upgrade to 6.2.10, those on 6.1.x should upgrade to 6.1.22, and users on 5.3.x should upgrade to 5.3.44. Version 6.0.x is out of support.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 18, 2025CISA-ADP
Assessed Aug 18, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://spring.io/security/cve-2025-41242 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Spring Framework | >= 6.2.0, <= 6.2.9 (semver) >= 6.1.0, <= 6.1.21 (semver) >= 6.0.0, <= 6.0.29 (semver) >= 5.3.0, <= 5.3.43 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 25, 2025 | CVE Modified | CISA-ADP |
| Aug 18, 2025 | New CVE Received | [email protected] |
Volerion