Red Hat VEX
RHVEX-CVE-2025-41242
org.springframework/spring-webmvc: Spring Framework MVC path traversal vulnerability
Details
A path traversal flaw was found in the Spring Framework MVC, affecting applications built on this framework. This flaw only affects applications that are deployed as a WAR or with an embedded Servlet container, which do not reject suspicious sequences and serve static resources with Spring resource handling. See the Jakarta servlet documentation in the References section for more information.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | log4j | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | log4j-jcl | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | log4j-slf4j | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | log4j-web | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | resteasy | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | resteasy-javadoc | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | log4j | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | log4j-jcl | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | log4j-slf4j | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | pki-resteasy-client | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | pki-resteasy-core | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | pki-resteasy-jackson2-provider | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | pki-resteasy-servlet-initializer | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | resteasy | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2025-41242
- https://bugzilla.redhat.com/show_bug.cgi?id=2389113
- https://www.cve.org/CVERecord?id=CVE-2025-41242
- https://nvd.nist.gov/vuln/detail/CVE-2025-41242
- http://spring.io/security/cve-2025-41242
- https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-config/static-resources.html#page-title
- https://jakarta.ee/specifications/servlet/6.1/jakarta-servlet-spec-6.1.html#uri-path-canonicalization