CVE-2026-59436 PUBLISHED

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

Assigner: vmware
Reserved: 04.07.2026 Published: 02.12.2026 Updated: 02.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
CVSS Score: 4.4

Product Status

Vendor Spring
Product Spring Cloud Config
Versions
  • affected from 5.0.0 to 5.0.6.1 (excl.)
  • affected from 4.3.0 to 4.3.6 (excl.)
  • affected from 4.0.0 to 4.2.10 (excl.)
  • affected from 3.1.0 to 3.1.16 (excl.)
  • affected from 5.0.0 to 5.0.7 (excl.)

References