Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/crypto/ssh
  4. ›
  5. CVE-2017-3204

CVE-2017-3204: Go SSH library vulnerable to Man-in-the-Middle attacks

February 7, 2023

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

References

  • bridge.grumpy-troll.org/2017/04/golang-ssh-security/
  • github.com/advisories/GHSA-xhjq-w7xm-p8qj
  • github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991
  • github.com/golang/go/issues/19767
  • go.dev/cl/340830
  • go.dev/issue/19767
  • go.googlesource.com/crypto/+/e4e2799dd7aab89f583e1d898300d96367750991
  • godoc.org/golang.org/x/crypto/ssh
  • nvd.nist.gov/vuln/detail/CVE-2017-3204
  • pkg.go.dev/vuln/GO-2020-0013
  • web.archive.org/web/20170423080311/https://www.securityfocus.com/bid/97481
  • web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-3204

Code Behaviors & Features

Detect and mitigate CVE-2017-3204 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20170330155735-e4e2799dd7aa

Fixed versions

  • 0.0.0-20170330155735-e4e2799dd7aa

Solution

Upgrade to version 0.0.0-20170330155735-e4e2799dd7aa or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

go/golang.org/x/crypto/ssh/CVE-2017-3204.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.