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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Spring by VMware | Spring Cloud Config | 2.2 – < 2.2.2, 2.1 – < 2.1.7 | 2.2.2 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
shoucheng3/spring-cloud__spring-cloud-config_CVE-2020-5405_2-1-6-RELEASE ★ 0 · Aug 20, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Spring Cloud Config - Local File Inclusion http/cves/2020/CVE-2020-5405.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework.cloud:spring-cloud-config-server | >= 2.1.0, < 2.1.7 | 2.1.7 | GHSA-g86w-v5vg-9gxf |
| Maven | org.springframework.cloud:spring-cloud-config-server | >= 2.2.0, < 2.2.2 | 2.2.2 | GHSA-g86w-v5vg-9gxf |