CVE-2017-3204
HIGH 8.1CVSS 3.1golang.org/x/crypto/ssh Man-in-the-Middle attack
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
- 4 Apr 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cret@cert.org
- NVD status
- Modified
- Weakness
- CWE-310
- Also known as
- GHSA-xhjq-w7xm-p8qjGO-2020-0013
- Sources
- NVDJSONOSV GHSA-xhjq-w7xm-p8qjJSONOSV GO-2020-0013JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | cryptocpe:2.3:a:golang:crypto:*:*:*:*:*:*:*:* |
<= 2017-03-17 | |
| OSV | Go | golang.org/x/crypto | < 0.0.0-20170330155735-e4e2799dd7aa | 0.0.0-20170330155735-e4e2799dd7aa |
References
- http://www.securityfocus.com/bid/97481 · Third Party Advisory, VDB Entry
- https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/ · Third Party Advisory, WEB
- https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991 · Patch, Third Party Advisory, WEB
- https://github.com/golang/go/issues/19767 · Third Party Advisory, WEB
- https://godoc.org/golang.org/x/crypto/ssh · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-3204 · ADVISORY
- https://go.dev/cl/340830 · WEB
- https://go.dev/cl/38701 · WEB, FIX
- https://go.dev/issue/19767 · WEB, REPORT
- https://go.googlesource.com/crypto/+/e4e2799dd7aab89f583e1d898300d96367750991 · WEB, FIX
- https://pkg.go.dev/vuln/GO-2020-0013 · WEB
- https://web.archive.org/web/20170423080311/https://www.securityfocus.com/bid/97481 · WEB
- https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-3204 · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 4 Apr 2017)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Feb 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)