What’s Vulnerable › Vulnerabilities
CVE-2020-5405: Directory Traversal with spring-cloud-config-server
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 68.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-03-05 · updated 2026-06-17
- Weakness: CWE-23
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.
Affected products
- Spring Cloud Config: from 2.1.0 before 2.1.7; from 2.2.0 before 2.2.2 — fixed in 2.1.7, 2.2.2
- Spring Cloud Config: from 2.2 before 2.2.2; from 2.1 before 2.1.7 — fixed in 2.2.2, 2.1.7
How to fix
Upgrade to a fixed version: Spring Cloud Config 2.1.7, 2.2.2; Spring Cloud Config 2.2.2, 2.1.7. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2020-5405 or the next vulnerability affects your stack