CVE-2025-41242
CVE-2025-41242: Path traversal vulnerability on non-compliant Servlet containers
Also known as GHSA-r936-gwx5-v52f
Mitigation
- Upgrade org.springframework:spring-webmvc to 6.2.10 or later.
Who should check
- Projects that depend on Maven package org.springframework:spring-webmvc (>= 6.2.0, < 6.2.10)
- Anyone running VMware Spring Framework >= 6.2.x, < 6.2.10; >= 6.1.x, < 6.1.22; >= 5.3.x, < 5.3.44
Vulnerability facts
- Affected
- org.springframework:spring-webmvc >= 6.2.0, < 6.2.10
- Fixed in
- 6.2.10
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 1.95% chance of exploitation in 30 days (percentile 81, 2026-11-26)
- CWE
- CWE-22
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.springframework:spring-webmvc | >= 6.2.0, < 6.2.10 | 6.2.10 | osv |
| VMware Spring Framework | >= 6.2.x, < 6.2.10; >= 6.1.x, < 6.1.22; >= 5.3.x, < 5.3.44 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-41242. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-41242.md Affected: org.springframework:spring-webmvc >= 6.2.0, < 6.2.10 Fixed in: 6.2.10 Steps: 1. Search this machine and project for org.springframework:spring-webmvc (Maven), VMware Spring Framework: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-41242 being exploited?
There is no confirmed exploitation: CVE-2025-41242 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.95% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-41242?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-41242?
org.springframework:spring-webmvc >= 6.2.0, < 6.2.10.
Is there a fix for CVE-2025-41242?
Yes. Fixed in 6.2.10. Upgrade org.springframework:spring-webmvc to 6.2.10 or later.
How do I check if I'm affected by CVE-2025-41242?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.