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

Published Aug 18, 2025
·
Updated

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

Affected Software

22 affected componentsFixes available
Spring Spring Framework
Apache Tomcat
Eclipse Jetty
maven/org.springframework:spring-webmvc>=5.3.0<=5.3.43
maven/org.springframework:spring-webmvc>=6.0.0<=6.0.29
maven/org.springframework:spring-webmvc>=6.1.0<=6.1.21
maven/org.springframework:spring-webmvc>=6.2.0<6.2.10
6.2.10
IBM Common Licensing<=Agent 9.0
IBM Common Licensing<=Agent 9.0.0.1
IBM Common Licensing<=Agent 9.0.0.2
IBM Common Licensing<=ART 9.0
IBM Common Licensing<=ART 9.0.0.1
IBM Common Licensing<=ART 9.0.0.2
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*
ubuntu/libspring-java*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.springframework:spring-webmvc to a version that resolves this vulnerability.

    Fixed in 6.2.10

Event History

Aug 18, 2025
CVE Published
via MITRE·08:47 AM
Data Sourced
via MITRE·08:47 AM
DescriptionSeverity
Data Sourced
via OSV·09:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:15 AM
DescriptionSeverity
Advisory Published
via GitHub·09:31 AM
Data Sourced
via GitHub·09:31 AM
DescriptionSeverityWeaknessAffected Software
Aug 25, 2025
Data Sourced
via NVD·07:15 PM
Weakness
Nov 3, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Sep 7, 2026
Updated
via IBM·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-41242?

CVE-2025-41242 has been classified with a high severity due to its potential to expose sensitive files in Spring Framework MVC applications.

2

How do I fix CVE-2025-41242?

To fix CVE-2025-41242, ensure that your application is deployed in a compliant Servlet container and properly validate user inputs.

3

Which applications are affected by CVE-2025-41242?

CVE-2025-41242 affects Spring Framework MVC applications deployed on non-compliant Servlet containers like Apache Tomcat and Eclipse Jetty.

4

What types of attacks can exploit CVE-2025-41242?

CVE-2025-41242 can be exploited through path traversal attacks, allowing attackers to access unauthorized file system locations.

5

Is CVE-2025-41242 relevant only to specific versions of Spring Framework?

CVE-2025-41242 is applicable to any version of Spring Framework that is deployed in a vulnerable configuration on a non-compliant Servlet container.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203