8.1high
CVE-2017-3204
golang.org/x/crypto/ssh Man-in-the-Middle attack
Also known as GHSA-xhjq-w7xm-p8qj, GO-2020-0013
Published 9 y ago · modified 4 mo ago · JSON
CVSS
8.1
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
3.2%
percentile 88%
Public exploits
0
none known
Summary
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.
Exploit prediction (EPSS)
3.16% probability of exploitation in the next 30 days, higher than 88% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | golang.org/x/crypto | <0.0.0-20170330155735-e4e2799dd7aa | 0.0.0-20170330155735-e4e2799dd7aa |
Affected products
- Go SSH library
Classification
- Weakness
- CWE-310 Cryptographic Issues
References
- godoc.org /golang.org/x/crypto/ssh · x_refsource_MISC, x_transferred
- github.com /golang/go/issues/19767 · x_refsource_CONFIRM, x_transferred
- bridge.grumpy-troll.org /2017/04/golang-ssh-security/ · x_refsource_MISC, x_transferred
- github.com /golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991 · x_refsource_CONFIRM, x_transferred
- securityfocus.com /bid/97481 · vdb-entry, x_refsource_BID, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2017-3204 · advisory
- bridge.grumpy-troll.org /2017/04/golang-ssh-security · web
- go.dev /cl/340830 · web
- go.dev /cl/38701 · web
- go.dev /issue/19767 · web
- go.googlesource.com /crypto/+/e4e2799dd7aab89f583e1d898300d96367750991 · web
- pkg.go.dev /vuln/GO-2020-0013 · web
- web.archive.org /web/20170423080311/https://www.securityfocus.com/bid/97481 · web
- web.nvd.nist.gov /view/vuln/detail?vulnId=CVE-2017-3204 · web
Sources
- CVE List: CVE-2017-3204
- GitHub Advisory: GHSA-xhjq-w7xm-p8qj
- NVD: CVE-2017-3204
- OSV: GO-2020-0013
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.