Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-3204

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-3204
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:31 UTC · Revision 1

Source evidence

CVE-2017-3204

core-osv · Original source

Published 4 Apr 2017, 14:59 UTC

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.

osv:CVE-2017-3204
Complete source record
{
  "id": "abcffc7ce2f57b0c1c2b72ea18c9a0f370c2567ceaea1a8472ed33744f8d427c",
  "url": "https://osv.dev/vulnerability/CVE-2017-3204",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-3204",
    "summary": "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.",
    "evidence": "osv:CVE-2017-3204",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-3204",
      "aliases": [
        "CVE-2017-3204",
        "GHSA-xhjq-w7xm-p8qj",
        "GO-2020-0013"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/golang/crypto",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "e4e2799"
                },
                {
                  "fixed": "e4e2799dd7aab89f583e1d898300d96367750991"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "e4e2799"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e4e2799dd7aab89f583e1d898300d96367750991"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-3204.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:32.367399954Z",
      "provider": "osv",
      "references": [
        "https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/",
        "https://github.com/golang/go/issues/19767",
        "https://godoc.org/golang.org/x/crypto/ssh",
        "https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:golang:crypto:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "golang:crypto",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2017-03-17"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2017-3204",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 381836,
  "published_at": "2017-04-04T14:59:00.18+00:00"
}