Git Repos Do Not Validate SSH Host Key When Using SSH In Spring Cloud Config Server

MEDIUM | NOVEMBER 19, 2026 | CVE-2026-59436

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 Spring Products and Versions

Spring Cloud Config:

  • 5.0.0 - 5.0.6
  • 4.3.0 - 4.3.5
  • 4.0.0 - 4.2.9
  • 3.1.0 - 3.1.15

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
5.0.7OSS
5.0.6.1Enterprise Support Only
4.3.6Enterprise Support Only
4.2.10Enterprise Support Only
3.1.16Enterprise Support Only

No further mitigation steps are necessary.

History

  • 2026-11-19: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

TrueSource Spring Enterprise offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all