HIGH 8.1 Go

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

GHSA-xhjq-w7xm-p8qj · CVE-2017-3204 · GO-2020-0013

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes