CVE-2026-59437 in Spring Cloud Configinfo

Summary

by MITRE • 12/02/2026

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 .

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 12/02/2026

The vulnerability described involves a critical misconfiguration within Spring Cloud Config Server that undermines the integrity of Secure Shell (SSH) connections used for accessing remote Git repositories. When administrators configure the server to use property-based SSH settings by setting spring.cloud.config.server.git.ignoreLocalSshSettings to true, they intend to bypass local user-specific SSH configurations such as those found in ~/.ssh/config. However, a logical flaw exists in how this mode interacts with other security parameters. Specifically, if the spring.cloud.config.server.git.hostKey parameter is not explicitly defined, the system fails to enforce strict host key verification even when the strictHostKeyChecking flag remains at its default true value. This discrepancy creates a scenario where the server effectively disables strict host key checking by ignoring the known hosts file and accepting any SSH server key presented during the connection handshake.

This behavior represents a severe deviation from standard Secure Shell protocol expectations, which rely on host key verification to prevent man-in-the-middle attacks. By failing to consult the configured spring.cloud.config.server.git.knownHostsFile when ignoreLocalSshSettings is active and no explicit hostKey is provided, the application loses its ability to authenticate the identity of the remote Git server. An attacker positioned within the network path between the Config Server and the Git repository could intercept these connections. Without strict host key checking, the attacker can present a fraudulent SSH public key that matches any expected identifier or simply bypass verification entirely, allowing them to decrypt traffic or inject malicious configuration data into the pipeline without detection.

The operational impact of this vulnerability is significant for organizations relying on Spring Cloud Config Server to distribute sensitive application properties and secrets over untrusted networks or across different environments. Since the server accepts any SSH key, an adversary could perform a man-in-the-middle attack to alter the configuration files fetched from the Git repository. This could lead to the injection of malicious code, credential theft, or denial of service by providing corrupted configurations that cause application failures. The risk is particularly acute in automated deployment pipelines where security controls are often relaxed for convenience, making this misconfiguration a common entry point for supply chain attacks targeting cloud-native applications.

From a classification perspective, this flaw aligns with CWE-295 Improper Certificate Validation and CWE-319 Cleartext Transmission of Sensitive Information within an Unprotected Channel. It also maps to MITRE ATT&CK techniques such as T1078 Valid Accounts if the attacker gains access through compromised credentials facilitated by the lack of server authentication, or more directly to network interception tactics where trust is improperly established during initial connection phases. The root cause lies in the conditional logic that prioritizes the ignoreLocalSshSettings flag over strict host key verification when specific cryptographic parameters are absent, creating a security gap despite seemingly secure default settings.

To mitigate this vulnerability, administrators must ensure that either spring.cloud.config.server.git.ignoreLocalSshSettings is set to false or, if it remains true for operational reasons, they explicitly configure the spring.cloud.config.server.git.hostKey parameter with the expected public key fingerprint of the Git server. Additionally, verifying that strictHostKeyChecking is enabled and pointing to a valid knownHostsFile is essential. Regular audits of Spring Cloud Config Server configurations should include checks for these specific properties to ensure that SSH connections maintain their intended security posture. Updating to patched versions of Spring Cloud where this logic error has been corrected is also recommended if available, as relying on default behaviors in complex configuration modes can lead to unintended security degradations.

Responsible

Vmware

Reservation

07/04/2026

Disclosure

12/02/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!