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.
https://github.com/golang/go/issues/19767
https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991
https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/
http://www.securityfocus.com/bid/97481
https://godoc.org/golang.org/x/crypto/ssh
Source: Mitre, NVD
Published: 2017-04-04
Updated: 2025-04-20
Base Score: 6.8
Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P
Severity: Medium
Base Score: 8.1
Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity: High
EPSS: 0.02187