{"answers":{"affected":"4 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-config-server. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-5405 exists.","fix":"Upgrade org.springframework.cloud:spring-cloud-config-server to a fixed version for your release line: 2.1.7 or 2.2.2.","what":"CVE-2020-5405 is a medium-severity path traversal vulnerability in Spring Cloud Config, published on 5 Mar 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5405 and fix it if it is affected.\n\nWhat it is: CVE-2020-5405 is a medium-severity path traversal vulnerability in Spring Cloud Config, published on 5 Mar 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-5405 exists.\n\nAffected packages and fixed versions:\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 2.1.0; fixed in 2.1.7\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 2.1.0; fixed in 2.1.7\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 2.2.0; fixed in 2.2.2\n- org.springframework.cloud:spring-cloud-config-server (Maven): affected from 2.2.0; fixed in 2.2.2\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-2020-5405/ (Markdown: https://insights.sbomify.com/CVE-2020-5405/index.md)","id":"CVE-2020-5405","markdown":"https://insights.sbomify.com/CVE-2020-5405/index.md","name":"CVE-2020-5405","record":{"aliases":["GHSA-g86w-v5vg-9gxf"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Spring Cloud Config Server","requires_auth":"none","summary":"Attackers can read arbitrary configuration files via directory traversal in Spring Cloud Config Server, exposing sensitive data.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"pivotal","cpe":[{"product":"spring_cloud_config","vendor":"vmware"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-23","name":"Relative Path Traversal"}],"description":"Spring Cloud Config, versions 2.2.x prior to 2.2.2, versions 2.1.x prior to 2.1.7, and older unsupported versions allow applications to serve arbitrary configuration files through the spring-cloud-config-server module. A malicious user, or attacker, can send a request using a specially crafted URL that can lead a directory traversal attack.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-08-20T13:24:07Z","kind":"github_poc","ref":"https://github.com/shoucheng3/spring-cloud__spring-cloud-config_CVE-2020-5405_2-1-6-RELEASE","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2020/CVE-2020-5405.yaml","stars":null,"title":"Spring Cloud Config - Local File Inclusion"}],"tier":"weaponised"},"has_fix":true,"headline":"Directory Traversal with spring-cloud-config-server","id":"CVE-2020-5405","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2020"},"n_packages":4,"n_references":1,"next":{"headline":"PCF Autoscaling logs its database credentials","id":"CVE-2020-5406"},"packages":[{"ecosystem":"Maven","fixed":["2.1.7"],"introduced":["2.1.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-config-server","purl":null,"source":"GHSA-g86w-v5vg-9gxf"},{"ecosystem":"Maven","fixed":["2.1.7"],"introduced":["2.1.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-config-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server","source":"GHSA-g86w-v5vg-9gxf"},{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-config-server","purl":null,"source":"GHSA-g86w-v5vg-9gxf"},{"ecosystem":"Maven","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"org.springframework.cloud:spring-cloud-config-server","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server","source":"GHSA-g86w-v5vg-9gxf"}],"prev":{"headline":"Authentication Leak On Redirect With Reactor Netty HttpClient","id":"CVE-2020-5404"},"products":["Spring Cloud Config"],"published":"2020-03-05","related":[{"cvss_score":7.5,"headline":"VMware Tanzu Spring Cloud Config Directory Traversal","id":"CVE-2020-5410","kev_date_added":"2022-03-25","published":"2020-06-02"},{"cvss_score":9.1,"headline":"Spring Cloud Config vulnerable to Path Traversal","id":"CVE-2026-40982","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":8.6,"headline":"Spring Cloud Config Profile Substitution Can Allow Unintended Access To Files And Enable SSRF Attacks","id":"CVE-2026-22739","kev_date_added":null,"published":"2026-03-24"},{"cvss_score":7.5,"headline":"Spring Cloud Config has an Authorization Bypass Through User-Controlled Key","id":"CVE-2026-40981","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":7.4,"headline":"Spring Cloud Config Server Susceptible To TOCTOU Attack","id":"CVE-2026-41002","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":7.2,"headline":"Spring Cloud Config Server Susceptible To TOCTOU Attack When Using SVN","id":"CVE-2026-47836","kev_date_added":null,"published":"2026-08-26"},{"cvss_score":6.8,"headline":"Spring Cloud Config Server Monitor Endpoint Does Not Validate Webhook Requests","id":"CVE-2026-47837","kev_date_added":null,"published":"2026-08-26"}],"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":"US public information, NVD API terms","name":"NVD"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Spring by VMware"]},"summary":"Attackers can read arbitrary configuration files via directory traversal in Spring Cloud Config Server, exposing sensitive data.","url":"https://insights.sbomify.com/CVE-2020-5405/"}