Path Traversal in Spring Cloud ConfigGHSA-4x49-w62v-76q7
MEDIUMGHSA-4x49-w62v-76q7 is a medium-severity (CVSS 6.5) Path Traversal vulnerability in org.springframework.cloud:spring-cloud-config-server. 5 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for org.springframework.cloud:spring-cloud-config-server — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.springframework.cloud:spring-cloud-config-server☕org.springframework.cloud:spring-cloud-config-server☕org.springframework.cloud:spring-cloud-config-serverReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Spring Cloud Config, versions 2.1.x prior to 2.1.2, versions 2.0.x prior to 2.0.4, and versions 1.4.x prior to 1.4.6, 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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.cloud:spring-cloud-config-server | all versions | 1.4.6org.springframework.cloud:spring-cloud-config-server:1.4.6 |
| ☕Maven | org.springframework.cloud:spring-cloud-config-server | ≥ 2.0.0&&< 2.0.4 | 2.0.4org.springframework.cloud:spring-cloud-config-server:2.0.4 |
| ☕Maven | org.springframework.cloud:spring-cloud-config-server | ≥ 2.1.0&&< 2.1.2 | 2.1.2org.springframework.cloud:spring-cloud-config-server:2.1.2 |
Affected Products
communications cloud native core policyoraclespring cloud configvmwareResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Spring Cloud Config 2.1.x - Path Traversal (Metasploit)
by Dhiraj Mishra · Apr 30, 2019
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.cloud:spring-cloud-config-server, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework.cloud:spring-cloud-config-server to 1.4.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-4x49-w62v-76q7 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
How to detect GHSA-4x49-w62v-76q7
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id ghsa-4x49-w62v-76q7 -u https://target- Template
- Spring Cloud Config Server - Local File Inclusion
- Severity
- medium
- Impact
- An attacker can exploit this vulnerability to read arbitrary files on the server, potentially leading to unauthorized access or sensitive information disclosure.
- Remediation
- Upgrade to a patched version of Spring Cloud Config Server or apply the recommended security patches.
Template by ProjectDiscovery nuclei-templates (madrobot), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is GHSA-4x49-w62v-76q7 in your dependencies?
Find it across Maven, including transitive dependencies.