Description
The Go SSH library (x/crypto/ssh) by default does not verify host keys, facilitating man-in-the-middle attacks. Default behavior changed in commit e4e2799 to require explicitly registering a hostkey verification mechanism.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Go | SSH library | prior to commit e4e2799 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | golang-go.crypto | 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1 | — |
| Debian 13 | golang-go.crypto | 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1 | — |
| Debian 12 | golang-go.crypto | 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | snapd | No fix yet | — |
| Ubuntu 26.04 LTS | snapd | No fix yet | — |
| Ubuntu 25.10 | snapd | No fix yet | — |
| Ubuntu 24.04 LTS | snapd | No fix yet | — |
| Ubuntu 22.04 LTS | snapd | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | snapd | No fix yet | — |
| Ubuntu Pro 18.04 LTS | snapd | No fix yet | — |
| Ubuntu Pro 16.04 LTS | snapd +1 | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | golang.org/x/crypto | < 0.0.0-20170330155735-e4e2799dd7aa | 0.0.0-20170330155735-e4e2799dd7aa | GHSA-xhjq-w7xm-p8qj |