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

7 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

Event History

Aug 18, 2025
CVE Published
via MITRE·08:47 AM
Data Sourced
via MITRE·08:47 AM
DescriptionSeverity
Data Sourced
via NVD·09:15 AM
DescriptionSeverity
Data Sourced
via NVD·09:15 AM
Weakness
Advisory Published
via GitHub·09:31 AM
Data Sourced
via GitHub·09:31 AM
DescriptionSeverityWeaknessAffected Software
Jan 30, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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