CVE-2025-41242 json
CVE-2025-41242: Path traversal vulnerability on non-compliant Servlet containers
published 2025-08-18 14 mo ago modified 2026-09-10 1 mo ago also GHSA-r936-gwx5-v52f , EUVD-2025-25122
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known, plus a Nuclei check
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.
Patch / fix
- maven org.springframework:spring-webmvc 6.2.10
- VMware Spring Framework 5.3.44, 6.1.22, 6.2.10
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-41242 updated cvss 5.9
org.springframework/spring-webmvc: Spring Framework MVC path traversal vulnerability
-
Red Hat AMQ Broker 7 spring-webmvc Red Hat build of Apache Camel - HawtIO 4 spring-webmvc Red Hat build of Apache Camel for Spring Boot 4 spring-webmvc Red Hat build of OptaPlanner 8 spring-webmvc Red Hat Enterprise Linux 8 log4j, resteasy, log4j-jcl, log4j-web, log4j-slf4j, resteasy-javadoc Red Hat Enterprise Linux 9 log4j, resteasy, log4j-jcl, log4j-slf4j, pki-resteasy-core, pki-resteasy-client, +2 moreaffected: workaround, no fix available “Fix deferred”
+4 more productsfewer
Red Hat Fuse 7 spring-webmvc Red Hat OpenShift Dev Spaces devspaces/pluginregistry-rhel9 Red Hat Process Automation 7 spring-webmvc Red Hat Single Sign-On 7 spring-webmvc -
Red Hat Data Grid 8 spring-webmvc Red Hat JBoss Enterprise Application Platform 7 spring-webmvc Red Hat JBoss Enterprise Application Platform 8 spring-webmvc Red Hat JBoss Enterprise Application Platform Expansion Pack spring-webmvcnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 14 mo ago
Exploit prediction
2.30% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Spring Framework - Path Traversal nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.springframework:spring-webmvc | >=6.2.0, <6.2.10 >=6.1.0, <=6.1.21 >=6.0.0, <=6.0.29 >=5.3.0, <=5.3.43 |
6.2.10 |
Affected products
- VMware Spring Framework
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- Technology feeds
References
Sources
- CVE List CVE-2025-41242
- GitHub Advisory GHSA-r936-gwx5-v52f
- NVD CVE-2025-41242
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.