Skip to content
OpenAdvisories
High · 8.1 CVE-2017-3204 EUVD-2023-0819GHSA-xhjq-w7xm-p8qjGO-2020-0013

golang.org/x/crypto/ssh Man-in-the-Middle attack

Published Apr 4, 2017 · Updated Aug 5, 2024 · Assigned by certcc

Description

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.

Affected products

VendorProductAffectedFixed
Go SSH library prior to commit e4e2799 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-go.crypto 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1 —
Debian 13 golang-go.crypto 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1 —
Debian 12 golang-go.crypto 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 snapd No fix yet —
Ubuntu 26.04 LTS snapd No fix yet —
Ubuntu 25.10 snapd No fix yet —
Ubuntu 24.04 LTS snapd No fix yet —
Ubuntu 22.04 LTS snapd No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS snapd No fix yet —
Ubuntu Pro 18.04 LTS snapd No fix yet —
Ubuntu Pro 16.04 LTS snapd +1 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go golang.org/x/crypto < 0.0.0-20170330155735-e4e2799dd7aa 0.0.0-20170330155735-e4e2799dd7aa GHSA-xhjq-w7xm-p8qj

References