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.
{ "nvd_published_at": null, "severity": "HIGH", "github_reviewed_at": "2023-02-07T22:39:34Z", "github_reviewed": true, "cwe_ids": [] }