ADVISORIES

GitHub Advisory Database

GHSA-xhjq-w7xm-p8qj

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

Details

The Go SSH library (golang.org/x/crypto/ssh) by default does not verify host keys, facilitating man-in-the-middle attacks if ClientConfig.HostKeyCallback is not set. Default behavior changed in commit e4e2799 to require explicitly registering a hostkey verification mechanism.

Affected packages

EcosystemPackageAffected versions
Gogolang.org/x/crypto
All versions before 0.0.0-20170330155735-e4e2799dd7aa (fixed in 0.0.0-20170330155735-e4e2799dd7aa)

References