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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.95% (percentile 81, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-r936-gwx5-v52f
- **Published:** 2025-08-18T08:47:07.427Z
- **Modified:** 2026-09-10T03:50:27.662Z

## 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

## 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

- Maven `org.springframework:spring-webmvc`: affected \>= 6.2.0, \< 6.2.10; fixed 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)

## Mitigation

- Upgrade org.springframework:spring-webmvc to 6.2.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-41242>
- other: <http://spring.io/security/cve-2025-41242>
- other: <https://github.com/spring-projects/spring-framework>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-41242>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-r936-gwx5-v52f> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-41242> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-41242>
