{"answers":{"affected":"12 open source packages ship an affected version, including org.springframework:spring-webflux and org.springframework:spring-webmvc.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38816 exists.","fix":"Upgrade org.springframework:spring-webflux to 6.1.13 or later.","what":"CVE-2024-38816 is a high-severity path traversal vulnerability in Spring, published on 13 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-38816 and fix it if it is affected.\n\nWhat it is: CVE-2024-38816 is a high-severity path traversal vulnerability in Spring, published on 13 Sep 2024. 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-2024-38816 exists.\n\nAffected packages and fixed versions:\n- org.springframework:spring-webflux (Maven): affected from 5.3.0 up to 5.3.39; no fix listed\n- org.springframework:spring-webflux (Maven): affected from 5.3.0 up to 5.3.39; no fix listed\n- org.springframework:spring-webflux (Maven): affected from 6.0.0 up to 6.0.23; no fix listed\n- org.springframework:spring-webflux (Maven): affected from 6.0.0 up to 6.0.23; no fix listed\n- org.springframework:spring-webflux (Maven): affected from 6.1.0; fixed in 6.1.13\n- org.springframework:spring-webflux (Maven): affected from 6.1.0; fixed in 6.1.13\n- org.springframework:spring-webmvc (Maven): affected from 5.3.0 up to 5.3.39; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 5.3.0 up to 5.3.39; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 6.0.0 up to 6.0.23; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 6.0.0 up to 6.0.23; no fix listed\n- org.springframework:spring-webmvc (Maven): affected from 6.1.0; fixed in 6.1.13\n- org.springframework:spring-webmvc (Maven): affected from 6.1.0; fixed in 6.1.13\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-2024-38816/ (Markdown: https://insights.sbomify.com/CVE-2024-38816/index.md)","id":"CVE-2024-38816","markdown":"https://insights.sbomify.com/CVE-2024-38816/index.md","name":"CVE-2024-38816","record":{"aliases":["CLEANSTART-2026-OB69984","CLSA-2024-1727136032","DEBIAN-CVE-2024-38816","ECHO-a7b5-9790-ee2f","GHSA-cx7f-g6mp-7hqm","ROOT-APP-MAVEN-CVE-2024-38816","UBUNTU-CVE-2024-38816"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Spring Web Framework","requires_auth":"none","summary":"Attackers can read arbitrary files via path traversal in Spring functional web frameworks when serving static resources from the filesystem.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/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":"Applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are vulnerable to path traversal attacks. An attacker can craft malicious HTTP requests and obtain any file on the file system that is also accessible to the process in which the Spring application is running.\n\nSpecifically, an application is vulnerable when both of the following are true:\n\n  *  the web application uses RouterFunctions to serve static resources\n  *  resource handling is explicitly configured with a FileSystemResource location\n\nHowever, malicious requests are blocked and rejected when any of the following is true:\n\n  *  the  Spring Security HTTP Firewall https://docs.spring.io/spring-security/reference/servlet/exploits/firewall.html  is in use\n  *  the application runs on Tomcat or Jetty","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2024-09-20","github_poc":5,"max_poc_stars":9,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-09-28T23:16:23Z","kind":"github_poc","ref":"https://github.com/WULINPIN/CVE-2024-38816-PoC","stars":9,"title":"CVE-2024-38816 Proof of Concept"},{"date":"2024-09-20T02:09:23Z","kind":"github_poc","ref":"https://github.com/startsw1th/cve-2024-38816-demo","stars":2,"title":null},{"date":"2024-12-02T02:14:49Z","kind":"github_poc","ref":"https://github.com/Anthony1078/App-vulnerable","stars":0,"title":" CVE-2024-38816"},{"date":"2025-01-02T07:50:31Z","kind":"github_poc","ref":"https://github.com/wdragondragon/spring-framework","stars":0,"title":"Fixed cve-2024-38816 based on version 5.3.39"},{"date":"2025-04-14T02:31:38Z","kind":"github_poc","ref":"https://github.com/jaloon/spring-webmvc5","stars":0,"title":"Fork spring-webmvc 5.3.39 to fix CVE-2024-38816, CVE-2024-38819"},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-38816.yaml","stars":null,"title":"WebMvc.fn/WebFlux.fn - Path Traversal"}],"tier":"weaponised"},"has_fix":true,"headline":"CVE-2024-38816: Path traversal vulnerability in functional web frameworks","id":"CVE-2024-38816","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":12,"n_references":1,"next":{"headline":"Command injection in VMware NSX, VMware Cloud Foundation","id":"CVE-2024-38817"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["5.3.0"],"last_affected":["5.3.39"],"package":"org.springframework:spring-webflux","purl":null,"source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":[],"introduced":["5.3.0"],"last_affected":["5.3.39"],"package":"org.springframework:spring-webflux","purl":"pkg:maven/org.springframework/spring-webflux","source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":[],"introduced":["6.0.0"],"last_affected":["6.0.23"],"package":"org.springframework:spring-webflux","purl":null,"source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":[],"introduced":["6.0.0"],"last_affected":["6.0.23"],"package":"org.springframework:spring-webflux","purl":"pkg:maven/org.springframework/spring-webflux","source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":["6.1.13"],"introduced":["6.1.0"],"last_affected":[],"package":"org.springframework:spring-webflux","purl":null,"source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":["6.1.13"],"introduced":["6.1.0"],"last_affected":[],"package":"org.springframework:spring-webflux","purl":"pkg:maven/org.springframework/spring-webflux","source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":[],"introduced":["5.3.0"],"last_affected":["5.3.39"],"package":"org.springframework:spring-webmvc","purl":null,"source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":[],"introduced":["5.3.0"],"last_affected":["5.3.39"],"package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":[],"introduced":["6.0.0"],"last_affected":["6.0.23"],"package":"org.springframework:spring-webmvc","purl":null,"source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":[],"introduced":["6.0.0"],"last_affected":["6.0.23"],"package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":["6.1.13"],"introduced":["6.1.0"],"last_affected":[],"package":"org.springframework:spring-webmvc","purl":null,"source":"GHSA-cx7f-g6mp-7hqm"},{"ecosystem":"Maven","fixed":["6.1.13"],"introduced":["6.1.0"],"last_affected":[],"package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"GHSA-cx7f-g6mp-7hqm"}],"prev":{"headline":"Open redirect in VMware NSX, VMware Cloud Foundation","id":"CVE-2024-38815"},"products":["Spring"],"published":"2024-09-13","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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-18","vendors":["Spring"]},"summary":"Attackers can read arbitrary files via path traversal in Spring functional web frameworks when serving static resources from the filesystem.","url":"https://insights.sbomify.com/CVE-2024-38816/"}