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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| VMware | Spring Framework | 6.2.x – < 6.2.10, 6.1.x – < 6.1.22, 5.3.x – < 5.3.44 | 6.2.10 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libspring-java | No fix yet | — |
| Debian 13 | libspring-java | No fix yet | — |
| Debian 12 | libspring-java | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libspring-java | No fix yet | — |
| Ubuntu 26.04 LTS | libspring-java | No fix yet | — |
| Ubuntu 25.10 | libspring-java | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 22.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 20.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 18.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 16.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 14.04 LTS | libspring-java | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | apache-nifi-registry +1 | 2.5.0-r1 | — |
| Wolfi rolling | thingsboard +4 | 4.1-r7 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
HORKimhab/CVE-2025-41242 ★ 0 · May 11, 2026
CVE-2025-41242
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Spring Framework - Path Traversal http/cves/2025/CVE-2025-41242.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework:spring-webmvc | >= 6.2.0, < 6.2.10 | 6.2.10 | GHSA-r936-gwx5-v52f |
| Maven | org.springframework:spring-webmvc | >= 6.1.0, <= 6.1.21 | — | GHSA-r936-gwx5-v52f |
| Maven | org.springframework:spring-webmvc | >= 6.0.0, <= 6.0.29 | — | GHSA-r936-gwx5-v52f |
| Maven | org.springframework:spring-webmvc | >= 5.3.0, <= 5.3.43 | — | GHSA-r936-gwx5-v52f |
Advisories 5
- WID-SEC-2026-0351 Dell NetWorker (Third Party Components): Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 31, 2026
- NCSC-2026-0126 Kwetsbaarheden verholpen in Oracle E-Business Suite NCSC-NL (Netherlands) · Apr 22, 2026
- WID-SEC-2026-1192 Oracle E-Business Suite: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 21, 2026
- WID-SEC-2026-0862 RealObjects PDFreactor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 25, 2026
- WID-SEC-2025-1832 VMware Tanzu Spring Framework: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Mar 23, 2026