Intel

AIKIDO-2025-10562

spring-webmvc is vulnerable to Path Traversal

Path TraversalCVE-2025-41242 Published Aug 18, 2025

60

Medium Risk

This Affects:

javaspring-webmvc
0.0.1 - 5.3.43
Fixed in 5.3.44
6.0.0 - 6.1.13
Fixed in 6.1.22
6.2.0 - 6.2.09
Fixed in 6.2.10
Are you affected? Scan for Free

TL;DR

Affected versions of Spring Framework MVC are vulnerable to path traversal when deployed on non-compliant Servlet containers. The issue arises if the application is deployed as a WAR or with an embedded container, the container does not properly reject suspicious path sequences, and the application serves static resources using Spring’s resource handling. While deployments on Apache Tomcat or Eclipse Jetty with default security features enabled are not affected, other containers or configurations may be exploitable, so upgrading to a patched version is strongly recommended.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you are not deploying on Apache Tomcat or Eclipse Jetty.

Background info

spring-webmvc is vulnerable to Path Traversal in versions 0.0.1 - 5.3.43, 6.0.0 - 6.1.13 and 6.2.0 - 6.2.09.

How to fix this

Upgrade the org.springframework:spring-webmvc library to a patch version.