{"answers":{"affected":"8 open source packages ship an affected version, including org.springframework:spring-webmvc.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-41242 exists.","fix":"Upgrade org.springframework:spring-webmvc to 6.2.10 or later.","what":"CVE-2025-41242 is a medium-severity path traversal vulnerability in VMware Spring Framework, published on 18 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-41242 and fix it if it is affected.\n\nWhat it is: CVE-2025-41242 is a medium-severity path traversal vulnerability in VMware Spring Framework, published on 18 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-41242 exists.\n\nAffected packages and fixed versions:\n- org.springframework:spring-webmvc (Maven): affected from 5.3.0 up to 5.3.43; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 5.3.0 up to 5.3.43; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 6.0.0 up to 6.0.29; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 6.0.0 up to 6.0.29; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 6.1.0 up to 6.1.21; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 6.1.0 up to 6.1.21; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 6.2.0; fixed in 6.2.10\n- org.springframework:spring-webmvc (Maven): affected from 6.2.0; fixed in 6.2.10\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-41242/ (Markdown: https://insights.sbomify.com/CVE-2025-41242/index.md)","id":"CVE-2025-41242","markdown":"https://insights.sbomify.com/CVE-2025-41242/index.md","name":"CVE-2025-41242","record":{"aliases":["CLEANSTART-2026-AL61083","CLSA-2026-1786369191","CLSA-2026-1786423599","CLSA-2026-1786424014","CLSA-2026-1786426050","DEBIAN-CVE-2025-41242","ECHO-ad95-71e3-575b","GHSA-r936-gwx5-v52f","MINI-7528-953p-h52p","MINI-9qpx-cv8r-95qh","MINI-m8qq-xcpp-897h","MINI-pq2q-52h6-8m8c","ROOT-APP-MAVEN-CVE-2025-41242","UBUNTU-CVE-2025-41242"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Spring Framework","requires_auth":"none","summary":"Attackers can read arbitrary files if Spring MVC serves static resources on a non-compliant Servlet container that fails to reject suspicious sequences.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant Servlet container.\n\nAn application can be vulnerable when all the following are true:\n\n  *  the application is deployed as a WAR or with an embedded Servlet container\n  *  the Servlet container  does not reject suspicious sequences https://jakarta.ee/specifications/servlet/6.1/jakarta-servlet-spec-6.1.html#uri-path-canonicalization \n  *  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\n\nWe 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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2026-05-11","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-05-11T02:19:40Z","kind":"github_poc","ref":"https://github.com/HORKimhab/CVE-2025-41242","stars":0,"title":"CVE-2025-41242"},{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-41242.yaml","stars":null,"title":"Spring Framework - Path Traversal"}],"tier":"weaponised"},"has_fix":true,"headline":"CVE-2025-41242: Path traversal vulnerability on non-compliant Servlet containers","id":"CVE-2025-41242","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":8,"n_references":1,"next":{"headline":"Spring Expression Language property modification using Spring Cloud Gateway Server WebFlux","id":"CVE-2025-41243"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["5.3.0"],"last_affected":["5.3.43"],"package":"org.springframework:spring-webmvc","purl":null,"source":"GHSA-r936-gwx5-v52f"},{"ecosystem":"Maven","fixed":[],"introduced":["5.3.0"],"last_affected":["5.3.43"],"package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"GHSA-r936-gwx5-v52f"},{"ecosystem":"Maven","fixed":[],"introduced":["6.0.0"],"last_affected":["6.0.29"],"package":"org.springframework:spring-webmvc","purl":null,"source":"GHSA-r936-gwx5-v52f"},{"ecosystem":"Maven","fixed":[],"introduced":["6.0.0"],"last_affected":["6.0.29"],"package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"GHSA-r936-gwx5-v52f"},{"ecosystem":"Maven","fixed":[],"introduced":["6.1.0"],"last_affected":["6.1.21"],"package":"org.springframework:spring-webmvc","purl":null,"source":"GHSA-r936-gwx5-v52f"},{"ecosystem":"Maven","fixed":[],"introduced":["6.1.0"],"last_affected":["6.1.21"],"package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"GHSA-r936-gwx5-v52f"},{"ecosystem":"Maven","fixed":["6.2.10"],"introduced":["6.2.0"],"last_affected":[],"package":"org.springframework:spring-webmvc","purl":null,"source":"GHSA-r936-gwx5-v52f"},{"ecosystem":"Maven","fixed":["6.2.10"],"introduced":["6.2.0"],"last_affected":[],"package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"GHSA-r936-gwx5-v52f"}],"prev":{"headline":"Denial-of-service vulnerability","id":"CVE-2025-41241"},"products":["Spring Framework"],"published":"2025-08-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-08-25","vendors":["VMware"]},"summary":"Attackers can read arbitrary files if Spring MVC serves static resources on a non-compliant Servlet container that fails to reject suspicious sequences.","url":"https://insights.sbomify.com/CVE-2025-41242/"}