Man In The Middle Attack Possible When Using Git and SSH With Spring Cloud Config Server
CVE-2026-59437Published 2 Dec 2026, 07:13 UTC
Real-world risk
0.6/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.4
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from vmware)
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 .
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Spring Cloud ConfigNiche | >= 5.0.0, < 5.0.6.1; >= 4.3.0, < 4.3.6; >= 4.0.0, < 4.2.10; >= 3.1.0, < 3.1.16; >= 5.0.0, < 5.0.7 | 5.0.6.1, 4.3.6, 4.2.10, 3.1.16, 5.0.7 |
What to do
Update to a fixed version: 5.0.6.1, 4.3.6, 4.2.10, 3.1.16, 5.0.7.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
The arithmetic
- Prerequisites multiplied together0.100
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.1 × threat 0.850.595
- Rounded to one decimal between 0.1 and 100.6
Exploitation and evidence timeline
- 2 Dec 2026 Published
- 2 Dec 2026 Risk 0.6 (cvss fallback)
Weakness
CWE-295