What’s Vulnerable › Vulnerabilities
CVE-2017-3204
- Severity: high (CVSS 8.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2017-04-04 · updated 2026-06-17
- Weakness: CWE-310
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
- golang.org/x/crypto/ssh: through 2017-03-17
References
- http://www.securityfocus.com/bid/97481
- https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/
- https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991
- https://github.com/golang/go/issues/19767
- https://godoc.org/golang.org/x/crypto/ssh
- http://www.securityfocus.com/bid/97481
- https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/
- https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991
- https://github.com/golang/go/issues/19767
- https://godoc.org/golang.org/x/crypto/ssh
Get alerted when CVE-2017-3204 or the next vulnerability affects your stack