CVE-2026-59436
Git Repos Do Not Validate SSH Host Key When Using SSH In Spring Cloud Config Server
Description
Spring Cloud Config Server can be configured to use property-based SSH settings for its Git repositories by setting spring.cloud.config.server.git.ignoreLocalSshSettings to true. The startup validators that check the host key and host key algorithm settings decide whether to run based on the top-level repository setting instead of the setting of the individual repository being validated.
When the top-level repository keeps the default (ignoreLocalSshSettings=false) and a sub-repository sets ignoreLocalSshSettings=true with an incomplete or unsupported host key configuration (for example a hostKeyAlgorithm without a hostKey), the configuration passes validation at startup. At runtime, no host key is available for that sub-repository, so strict host key checking is disabled and any SSH server key is accepted.
Applications are affected when they use the Config Server with a Git backend over SSH and have a sub-repository configured this way.
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.
