Live threats

All CVEs / Golang

CVE-2017-3204Golang Crypto

High 8.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Crypto.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
golangcrypto≤ 2017-03-17

Official sources

References

Links published by the sources. Open them with care.