All reports
High

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

Affected versions

Version ranges need review.

Affected versions
< 0.0.0-20170330155735-e4e2799dd7aa
Fixed version
0.0.0-20170330155735-e4e2799dd7aa
Affected versions
<0.0.0-20170330155735-e4e2799dd7aa
Fixed version
0.0.0-20170330155735-e4e2799dd7aa

Exploitation

CVE-2017-3204

Probability of exploitation in the next 30 days: 3.16%

FIRST EPSS · 2026-11-19

Description

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.

Links

Credits

  • Phil Pennock