CVE-2017-3204Golang Crypto
High 8.1 No auth needed
Follow: this CVE · Golang · Golang Crypto We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- 3.2% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Apr 4, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-310
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Crypto.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | golang.org/x/crypto |
< 0.0.0-20170330155735-e4e2799dd7aa |
0.0.0-20170330155735-e4e2799dd7aa |
go get golang.org/x/crypto@v0.0.0-20170330155735-e4e2799dd7aa |
| Go | golang.org/x/crypto |
< 0.0.0-20170330155735-e4e2799dd7aa |
0.0.0-20170330155735-e4e2799dd7aa |
go get golang.org/x/crypto@v0.0.0-20170330155735-e4e2799dd7aa |
Per OSV / GitHub Advisories (GHSA-xhjq-w7xm-p8qj, GO-2020-0013). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | crypto | ≤ 2017-03-17 |
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com Third Party Advisory VDB Entry
- bridge.grumpy-troll.org Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- godoc.org Vendor Advisory