Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework/spring-webmvc
  4. ›
  5. CVE-2025-41242

CVE-2025-41242: Spring Framework MVC Applications Path Traversal Vulnerability

August 18, 2025

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:

References

  • github.com/advisories/GHSA-r936-gwx5-v52f
  • github.com/spring-projects/spring-framework
  • nvd.nist.gov/vuln/detail/CVE-2025-41242

Code Behaviors & Features

Detect and mitigate CVE-2025-41242 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.3.0 up to 5.3.43, all versions starting from 6.0.0 up to 6.0.29, all versions starting from 6.1.0 up to 6.1.21, all versions starting from 6.2.0 before 6.2.10

Fixed versions

  • 6.2.10

Solution

Upgrade to version 6.2.10 or above.

Impact 5.9 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/org.springframework/spring-webmvc/CVE-2025-41242.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:59 +0000.