Skip to main content
← All vulnerabilities
CVE-2025-41242GHSA-R936-GWX5-V52F

CVE-2025-41242: Path traversal vulnerability on non-compliant Servlet containers

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.2.10, 6.1.22, 5.3.44
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

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. 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

References 3

spring.io

GitHub · projectdiscovery/nuclei-templates

GitHub · HORKimhab/CVE-2025-41242