{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2017-3204","id":"CVE-2017-3204","title":"golang.org/x/crypto/ssh Man-in-the-Middle attack","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.","descriptionLong":"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.","published":"2017-04-04T14:00:00.000Z","updated":"2026-10-20T10:50:32.367399954Z","reserved":"2016-12-05T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"certcc","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["Go SSH library"],"affectedProducts":[{"vendor":"Go","product":"SSH library","defaultStatus":null,"versions":[{"status":"affected","version":"prior to commit e4e2799"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"golang.org/x/crypto","purl":"pkg:golang/golang.org/x/crypto","ranges":["<0.0.0-20170330155735-e4e2799dd7aa"],"fixed":["0.0.0-20170330155735-e4e2799dd7aa"],"advisory":"GHSA-xhjq-w7xm-p8qj"}],"cwes":["CWE-310"],"aliases":["GHSA-xhjq-w7xm-p8qj","GO-2020-0013"],"references":[{"url":"https://godoc.org/golang.org/x/crypto/ssh","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/golang/go/issues/19767","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"http://www.securityfocus.com/bid/97481","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-3204","tags":["advisory"]},{"url":"https://bridge.grumpy-troll.org/2017/04/golang-ssh-security","tags":["web"]},{"url":"https://go.dev/cl/340830","tags":["web"]},{"url":"https://go.dev/cl/38701","tags":["web","fix"]},{"url":"https://go.dev/issue/19767","tags":["web","report"]},{"url":"https://go.googlesource.com/crypto/+/e4e2799dd7aab89f583e1d898300d96367750991","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0013","tags":["web"]},{"url":"https://web.archive.org/web/20170423080311/https://www.securityfocus.com/bid/97481","tags":["web"]},{"url":"https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-3204","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03156,"epssPercentile":0.8822,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2017-3204","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-3204","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2017-3204","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xhjq-w7xm-p8qj","ok":true,"note":"GHSA-xhjq-w7xm-p8qj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2017-3204","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}