Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreWhen 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.
Spring Cloud Config:
| Fix version | Availability |
|---|---|
| 5.0.7 | OSS |
| 5.0.6.1 | Enterprise Support Only |
| 4.3.6 | Enterprise Support Only |
| 4.2.10 | Enterprise Support Only |
| 3.1.16 | Enterprise Support Only |
Until you can upgrade, set the spring.cloud.config.server.git.hostKey property (together with spring.cloud.config.server.git.hostKeyAlgorithm) for every Git repository that uses property-based SSH settings, so that the server's key is pinned explicitly.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy