CVE-2026-40982 — Vulnerability in spring-cloud-config-server
Spring Cloud Config vulnerable to Path Traversal
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.82%). Schedule for your next planned update.
Does your project use an affected org.springframework.cloud:spring-cloud-config-server version?
Paste your pom.xml to check it for CVE-2026-40982 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Spring Cloud Config allows applications to serve arbitrary text and binary 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 to a directory traversal attack. Spring Cloud Config 3.1.x: affected from 3.1.0 through 3.1.13 (inclusive); upgrade to 3.1.14 or greater (Enterprise Support Only). Spring Cloud Config 4.1.x: affected from 4.1.0 through 4.1.9 (inclusive); upgrade to 4.1.10 or greater (Enterprise Support Only). Spring Cloud Config 4.2.x: affected from 4.2.0 through 4.2.6 (inclusive); upgrade to 4.2.7 or greater (Enterprise Support Only). Spring Cloud Config 4.3.x: affected from 4.3.0 through 4.3.2 (inclusive); upgrade to 4.3.3 or greater. Spring Cloud Config 5.0.x: affected from 5.0.0 through 5.0.2 (inclusive); upgrade to 5.0.3 or greater.
Advisory Timeline
- First published May 7, 2026 (203 days ago).
- Last revised June 11, 2026 — 35 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 5.0.3 for org.springframework.cloud:spring-cloud-config-server -->
<!-- Update pom.xml dependency version to 4.3.3 for org.springframework.cloud:spring-cloud-config-server -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.springframework.cloud:spring-cloud-config-server Maven · Affected: 5.0.0, 5.0.1, 5.0.2 | 5.0.3 |
| org.springframework.cloud:spring-cloud-config-server Maven · Affected: 4.3.0, 4.3.1, 4.3.2 | 4.3.3 |
| org.springframework.cloud:spring-cloud-config-server Maven · Affected: 1.0.0.RELEASE, 1.0.1.RELEASE, 1.0.2.RELEASE, 1.0.3.RELEASE (+67 more) | Range-based data available |
| org.springframework.cloud:spring-cloud-config-server Maven · Affected: 4.1.0, 4.1.1, 4.1.2, 4.1.3 (+4 more) | Range-based data available |
| org.springframework.cloud:spring-cloud-config-server Maven · Affected: 4.2.0, 4.2.1, 4.2.2, 4.2.3 (+1 more) | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
Frequently Asked Questions
- What is CVE-2026-40982?
- Spring Cloud Config vulnerable to Path Traversal. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2026-40982?
- CVE-2026-40982 affects org.springframework.cloud:spring-cloud-config-server. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40982 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 54.3% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2022-22947CRITICAL
Spring Cloud Gateway vulnerable to Code Injection when Gateway Actuator endpoint enabled, exposed, unsecured
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host
- CVE-2024-37084CRITICAL
Remote code execution in Spring Cloud Data Flow
- CVE-2025-41243CRITICAL
Spring Expression language property modification using Spring Cloud Gateway Server WebFlux
- CVE-2026-22739HIGH
Spring Cloud Config Server: Path Traversal via Profile Parameter Allows Arbitrary File Access
- CVE-2025-41235HIGH
Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies