MODERATE

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)

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.