{"id":"CVE-2017-3204","published":"2017-04-04T14:00:00Z","modified":"2024-08-05T14:16:28Z","title":"The Go SSH library (x/crypto/ssh) by default does not verify host keys, facilitating man-in-the-middle attacks","vendor":"Go","product":"SSH library","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03156,"percentile":0.88275,"provenance":"source"},"cwes":[{"id":"CWE-310","name":null}],"references":[{"url":"https://godoc.org/golang.org/x/crypto/ssh","tags":["x_refsource_MISC"]},{"url":"https://github.com/golang/go/issues/19767","tags":["x_refsource_CONFIRM"]},{"url":"https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/","tags":["x_refsource_MISC"]},{"url":"https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/97481","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":17.7,"factors":[{"name":"EPSS percentile","points":17.66}]},"vendorSlug":"go","affectedVersions":[{"vendor":"Go","product":"SSH library","versions":["prior to commit e4e2799"]}],"affected":[{"ecosystem":"Go","package":"golang.org/x/crypto","vulnerableRanges":["<0.0.0-20170330155735-e4e2799dd7aa"],"patched":["0.0.0-20170330155735-e4e2799dd7aa"],"from":["GHSA-xhjq-w7xm-p8qj","GO-2020-0013"],"provenance":"source"}],"summary":{"text":"The flaw lies in the Go SSH library (x/crypto/ssh), which by default does not verify server host keys, leaving SSH clients open to man-in-the-middle attacks. The default behaviour was changed in a later commit so that applications must explicitly register a host key verification mechanism.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:53Z"},"euvd":{"id":"EUVD-2023-0819","exploited":false,"provenance":"source"}}