Man In The Middle Attack Possible When Using Git and SSH With Spring Cloud Config Server
- CVE-2026-59437
- GHSA-wv98-9f3c-mfvq
- EUVD-2026-140919
Description
When 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 .
Text from the CVE.org record.
Affected
Spring Spring Cloud Config
- from 5.0.0 to before 5.0.6.1
- from 4.3.0 to before 4.3.6
- from 4.0.0 to before 4.2.10
- from 3.1.0 to before 3.1.16
- from 5.0.0 to before 5.0.7
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.