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