CVE-2025-41242

MediumCVSS 5.9/10Last modified Jun 17, 2026

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.

Metrics

CVSS 3.1 5.9/10CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Aug 18, 2025
Last modified
Jun 17, 2026
NVD status
Deferred

Related CVEs from 2025

CVE-2025-4124310.0Spring Cloud Gateway Server Webflux may be vulnerable to Spring Environment property modification. An application should be considered vulnCVE-2025-412447.8VMware Aria Operations and VMware Tools contain a local privilege escalation vulnerability. A malicious local actor with non-administrative CVE-2025-412454.9VMware Aria Operations contains an information disclosure vulnerability. A malicious actor with non-administrative privileges in Aria OperatCVE-2025-412467.6VMware Tools for Windows contains an improper authorisation vulnerability due to the way it handles user access controls. A malicious actor CVE-2025-412487.5The Spring Security annotation detection mechanism may not correctly resolve annotations on methods within type hierarchies with a parameterCVE-2025-412497.5The Spring Framework annotation detection mechanism may not correctly resolve annotations on methods within type hierarchies with a parameteCVE-2025-41259.8Delta Electronics ISPSoft version 3.20 is vulnerable to an Out-Of-Bounds Write vulnerability that could allow an attacker to execute arbitraCVE-2025-412508.5VMware vCenter contains an SMTP header injection vulnerability. A malicious actor with non-administrative privileges on vCenter who has permCVE-2025-412518.1VMware NSX contains a weak password recovery mechanism vulnerability. An unauthenticated malicious actor may exploit this to enumerate validCVE-2025-412527.5Description: VMware NSX contains a username enumeration vulnerability. An unauthenticated malicious actor may exploit this to enumerate valiCVE-2025-412537.5The following versions of Spring Cloud Gateway Server Webflux may be vulnerable to the ability to expose environment variables and system prCVE-2025-412544.3STOMP over WebSocket applications may be vulnerable to a security bypass that allows an attacker to send unauthorized messages. Affected Sp
CVE-2025-41242: Medium severity, CVSS 5.9 | Vulnix