CVE-2017-3204: Go SSH library vulnerable to Man-in-the-Middle attacks
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.
References
- bridge.grumpy-troll.org/2017/04/golang-ssh-security/
- github.com/advisories/GHSA-xhjq-w7xm-p8qj
- github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991
- github.com/golang/go/issues/19767
- go.dev/cl/340830
- go.dev/issue/19767
- go.googlesource.com/crypto/+/e4e2799dd7aab89f583e1d898300d96367750991
- godoc.org/golang.org/x/crypto/ssh
- nvd.nist.gov/vuln/detail/CVE-2017-3204
- pkg.go.dev/vuln/GO-2020-0013
- web.archive.org/web/20170423080311/https://www.securityfocus.com/bid/97481
- web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-3204
Detect and mitigate CVE-2017-3204 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →