Skip to content

Spring Framework

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?

ProductAffected 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.446.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

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.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
  1. Prerequisites multiplied together0.450
  2. Threat T4: Weaponized1.000
  3. 10 × impact 0.8 × prerequisites 0.45 × threat 13.600
  4. Rounded to one decimal between 0.1 and 103.6

How the score works

Exploitation and evidence timeline

  1. 18 Aug 2025 Published
  2. 3 Dec 2026 Nuclei scanner template first seen
  3. 3 Dec 2026 Risk 3.6 (cvss fallback)

Weakness

CWE-22

References

Get alerts for Spring Framework

Free email or text alerts when a vulnerability in Spring Framework reaches risk 8 or higher. Nothing else.