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.
Metrics
CVSS 3.1 8.1/10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| Go | SSH library | prior to commit e4e2799 |
References
- http://www.securityfocus.com/bid/97481Third Party Advisory, VDB Entry
- https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/Third Party Advisory
- https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991Patch, Third Party Advisory
- https://github.com/golang/go/issues/19767Third Party Advisory
- https://godoc.org/golang.org/x/crypto/sshVendor Advisory
- http://www.securityfocus.com/bid/97481Third Party Advisory, VDB Entry
- https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/Third Party Advisory
- https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991Patch, Third Party Advisory
- https://github.com/golang/go/issues/19767Third Party Advisory
- https://godoc.org/golang.org/x/crypto/sshVendor Advisory
Timeline
- Published
- Apr 4, 2017
- Last modified
- Jun 17, 2026
- NVD status
- Modified