CVE-2017-3204
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
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | snapd | Fix pending | UBUNTU-CVE-2017-3204 | |
| Ubuntu 26.04 | snapd | Will not fix ubuntu-snappy and snapd contain embedded copies of golang-go.crypto snapd doesn't use this particular part of golang-go.crypto as it doesn't act as a SSH client | UBUNTU-CVE-2017-3204 | |
| Ubuntu 25.10 | golang-go.crypto | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | snapd | Will not fix ubuntu-snappy and snapd contain embedded copies of golang-go.crypto snapd doesn't use this particular part of golang-go.crypto as it doesn't act as a SSH client | UBUNTU-CVE-2017-3204 | |
| Ubuntu 24.04 | snapd | Will not fix ubuntu-snappy and snapd contain embedded copies of golang-go.crypto snapd doesn't use this particular part of golang-go.crypto as it doesn't act as a SSH client | UBUNTU-CVE-2017-3204 | |
| Ubuntu 22.04 | snapd | Will not fix ubuntu-snappy and snapd contain embedded copies of golang-go.crypto snapd doesn't use this particular part of golang-go.crypto as it doesn't act as a SSH client | UBUNTU-CVE-2017-3204 | |
| Ubuntu 20.04 | snapd | Fix pending | UBUNTU-CVE-2017-3204 | |
| Ubuntu 18.04 | snapd | Fix pending | UBUNTU-CVE-2017-3204 | |
| Ubuntu 16.04 | golang-go.crypto | Will not fix ubuntu-snappy and snapd contain embedded copies of golang-go.crypto snapd doesn't use this particular part of golang-go.crypto as it doesn't act as a SSH client | UBUNTU-CVE-2017-3204 | |
| Ubuntu 16.04 | snapd | Will not fix ubuntu-snappy and snapd contain embedded copies of golang-go.crypto snapd doesn't use this particular part of golang-go.crypto as it doesn't act as a SSH client | UBUNTU-CVE-2017-3204 | |
| Debian 14 | golang-go.crypto | Fixed | 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1 | DEBIAN-CVE-2017-3204 |
| Debian 13 | golang-go.crypto | Fixed | 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1 | DEBIAN-CVE-2017-3204 |
| Debian 12 | golang-go.crypto | Fixed | 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1 | DEBIAN-CVE-2017-3204 |
| Red Hat Enterprise Linux 7 | gomtree | Not affected | ||
| Red Hat Enterprise Linux 7 | kubernetes | Not affected | ||
| Go library | golang.org/x/crypto | Fixed | 0.0.0-20170330155735-e4e2799dd7aa | GHSA-xhjq-w7xm-p8qj |
What the vendor says
As published in the CVE record by certcc, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Go SSH library: affected: prior to commit e4e2799
References
- https://godoc.org/golang.org/x/crypto/ssh
- https://github.com/golang/go/issues/19767
- https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/
- https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991
- http://www.securityfocus.com/bid/97481
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.