CVE-2025-41242: Path traversal vulnerability on non-compliant Servlet containers
CVE-2025-41242Published 18 Aug 2025, 08:47 UTC
Real-world risk
3.6/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.9
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from vmware)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Spring FrameworkNiche | >= 6.2.x, < 6.2.10; >= 6.1.x, < 6.1.22; >= 5.3.x, < 5.3.44 | 6.2.10, 6.1.22, 5.3.44 |
What to do
Update to a fixed version: 6.2.10, 6.1.22, 5.3.44.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T4: Weaponized (× 1.00)
A Metasploit module, a Nuclei template, or a verified Exploit-DB entry
- Nuclei scanner template (link)
EPSS 2.4% chance of exploitation in 30 days (percentile 84), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T4: Weaponized1.000
- 10 × impact 0.8 × prerequisites 0.45 × threat 13.600
- Rounded to one decimal between 0.1 and 103.6
Exploitation and evidence timeline
- 18 Aug 2025 Published
- 3 Dec 2026 Nuclei scanner template first seen
- 3 Dec 2026 Risk 3.6 (cvss fallback)
Weakness
CWE-22