CVE-2026-59436: Git Repos Do Not Validate SSH Host Key When Using SSH In Spring Cloud Config Server
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 Software
Event History
Frequently Asked Questions
Which configurations are exposed?
Exposure requires a Config Server using an SSH Git backend, with the top-level repository retaining ignoreLocalSshSettings=false and at least one sub-repository setting ignoreLocalSshSettings=true. The sub-repository must also have an incomplete or unsupported host key configuration, such as setting hostKeyAlgorithm without hostKey.
Are default configurations affected?
Not by themselves. The issue depends on a per-sub-repository override of ignoreLocalSshSettings together with an invalid host key configuration while the top-level repository keeps its default setting.
How can teams identify affected repositories and reduce exposure before patching?
Review every sub-repository that sets spring.cloud.config.server.git.ignoreLocalSshSettings=true, rather than relying only on startup validation. Ensure its host key and host key algorithm settings are complete and supported so that strict host key checking remains available.