CRITICAL 9.1

CVE-2026-40982

Spring Cloud Config vulnerable to Path Traversal

Description

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.cloud » spring-cloud-config-server
<= 3.1.13>= 4.1.0, <= 4.1.9>= 4.2.0, <= 4.2.6>= 4.3.0, < 4.3.3>= 5.0.0, < 5.0.3
4.3.3, 5.0.3

Blast radius

1affected artifacts
147affected versions
256dependent artifacts (est.)
12,419dependent versions

11% of the dependent artifacts (30) still pull an affected version in their latest release.

DepthDependent versions
Direct
5,083
2 hops
4,837
3 hops
2,307
4 hops
172
5 hops
20

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.