Spring Cloud Config Server: Path Traversal via Profile Parameter Allows Arbitrary File AccessGHSA-3qwq-q9vm-5j42
HIGHFix: spring-cloud/spring-cloud-config@1870f07GHSA-3qwq-q9vm-5j42 is a high-severity (CVSS 8.6) Path Traversal vulnerability in org.springframework.cloud:spring-cloud-config-server. A fix is available for org.springframework.cloud:spring-cloud-config-server — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-3qwq-q9vm-5j42.
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-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
Vulnerability in Spring Cloud when substituting the profile parameter from a request made to the Spring Cloud Config Server configured to the native file system as a backend, because it was possible to access files outside of the configured search directories.This issue affects Spring Cloud: from 3.1.X before 3.1.13, from 4.1.X before 4.1.9, from 4.2.X before 4.2.3, from 4.3.X before 4.3.2, from 5.0.X before 5.0.2.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.cloud:spring-cloud-config-server | ≥ 4.3.0&&< 4.3.2 | 4.3.2org.springframework.cloud:spring-cloud-config-server:4.3.2 |
| ☕Maven | org.springframework.cloud:spring-cloud-config-server | ≥ 5.0.0-M1&&< 5.0.2 | 5.0.2org.springframework.cloud:spring-cloud-config-server:5.0.2 |
| ☕Maven | org.springframework.cloud:spring-cloud-config-server | ≥ 4.2.0 | No fix |
| ☕Maven | org.springframework.cloud:spring-cloud-config-server | ≥ 4.0.0 | No fix |
| ☕Maven | org.springframework.cloud:spring-cloud-config-server | all versions | No fix |
Affected Products
spring cloud configvmwareDetection & 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 4.3.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-3qwq-q9vm-5j42 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-3qwq-q9vm-5j42
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id ghsa-3qwq-q9vm-5j42 -u https://target- Template
- Spring Cloud Config Server - Path Traversal
- Severity
- high
- Impact
- Attackers can access arbitrary files outside intended directories, potentially exposing sensitive information
- Remediation
- "Upgrade to versions 3.1.13, 4.1.9, 4.2.3, 4.3.2, or 5.0.2 or later.
Template by ProjectDiscovery nuclei-templates (0x_Akoko, vulnh0lic), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is GHSA-3qwq-q9vm-5j42 in your dependencies?
Find it across Maven, including transitive dependencies.