CVE-2025-41242: Path traversal vulnerability on non-compliant Servlet containers
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.2.10, 6.1.22, 5.3.44
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 proof of concept on GitHub, 1 Nuclei template
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- Spring Framework
From 6.2.x · fixed in 6.2.10; From 6.1.x · fixed in 6.1.22; From 5.3.x · fixed in 5.3.44
- org.springframework:spring-webmvcMaven
From 6.2.0 · fixed in 6.2.10
- org.springframework:spring-webmvcMaven
From 6.1.0 · through 6.1.21
- org.springframework:spring-webmvcMaven
From 6.0.0 · through 6.0.29
- org.springframework:spring-webmvcMaven
From 5.3.0 · through 5.3.43