CVE-2026-59437: Man In The Middle Attack Possible When Using Git and SSH With Spring Cloud Config Server

Published Dec 2, 2026
·
Updated

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 .

Affected Software

1 affected component
VMware Spring Cloud Config Server

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Configure an explicit spring.cloud.config.server.git.hostKey when using property-based SSH settings for a Git repository.

    Spring Cloud Config Server spring.cloud.config.server.git.hostKey = explicit host key

Event History

Dec 2, 2026
CVE Published
via MITRE·07:13 AM
Data Sourced
via MITRE·07:13 AM
DescriptionSeverity

Frequently Asked Questions

1

Which deployments are affected?

Deployments are affected when Spring Cloud Config Server uses a Git backend over SSH, enables property-based SSH settings with spring.cloud.config.server.git.ignoreLocalSshSettings=true, and does not configure spring.cloud.config.server.git.hostKey.

2

Does enabling strictHostKeyChecking or configuring knownHostsFile prevent this issue?

No. In the affected configuration, strict host key checking is disabled even when spring.cloud.config.server.git.strictHostKeyChecking=true, and the configured spring.cloud.config.server.git.knownHostsFile is not consulted.

3

What does an attacker need to exploit this?

An attacker must be able to perform a man-in-the-middle attack on the SSH connection between the Config Server and its Git repository. Exploitation can result in integrity impact.

4

What configuration change can mitigate the issue if patching is not immediately possible?

Configure an explicit SSH host key using spring.cloud.config.server.git.hostKey. Alternatively, avoid the affected property-based SSH mode for Git-over-SSH repositories.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203