MODERATE

CVE-2026-59437

Man In The Middle Attack Possible When Using Git and SSH With Spring Cloud Config Server

Description

When Spring Cloud Config Server uses property-based SSH settings (spring.cloud.config.server.git.ignoreLocalSshSettings=true) for a Git repository and no spring.cloud.config.server.git.hostKey is configured, it disables strict host key checking even if spring.cloud.config.server.git.strictHostKeyChecking is true, which is the default. The server then accepts any SSH server key and never consults the configured spring.cloud.config.server.git.knownHostsFile.

Applications are affected when they use the Config Server with a Git backend over SSH in property-based SSH mode without an explicit hostKey.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.cloud » spring-cloud-config-server
>= 3.1.0, <= 3.1.15>= 4.0.0, <= 4.2.9>= 4.3.0, <= 4.3.5>= 5.0.0, < 5.0.7
5.0.7

Blast radius

1affected artifacts
48affected versions
37dependent artifacts (est.)
14,306dependent versions

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

DepthDependent versions
Direct
7,398
2 hops
2,736
3 hops
4,172

Most used dependents

Computed from the dependency graph of build 20261127.1117 (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.