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)
| Artifact | Affected versions | Fixed 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
78% of the dependent artifacts (29) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 7,398 |
| 2 hops | 2,736 |
| 3 hops | 4,172 |
Most used dependents
- org.springframework.cloud » spring-cloud-config-monitor13 usages
- io.spinnaker.kork » kork-cloud-config-server12 usages
- io.spinnaker.clouddriver » clouddriver-aws5 usages
- io.spinnaker.halyard » halyard-core5 usages
- io.spinnaker.halyard » halyard-config4 usages
- io.spinnaker.clouddriver » clouddriver-configserver3 usages
- io.spinnaker.clouddriver » clouddriver-google3 usages
- io.spinnaker.clouddriver » clouddriver-appengine2 usages
- io.spinnaker.halyard » halyard-backup2 usages
- io.spinnaker.halyard » halyard-deploy2 usages
- ai.digital.config » config-encryptor1 usages
- ai.digital.config » config-server-api-impl1 usages
- io.spinnaker.clouddriver » clouddriver-cloudrun1 usages
- io.spinnaker.clouddriver » clouddriver-ecs1 usages
- io.spinnaker.clouddriver » clouddriver-kubernetes1 usages
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.
