{"api_version":"1","generated_at":"2026-07-23T05:44:45+00:00","cve":"CVE-2017-3204","urls":{"html":"https://cve.report/CVE-2017-3204","api":"https://cve.report/api/cve/CVE-2017-3204.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-3204","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-3204"},"summary":{"title":"CVE-2017-3204","description":"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.","state":"PUBLISHED","assigner":"certcc","published_at":"2017-04-04 14:59:00","updated_at":"2025-04-20 01:37:25"},"problem_types":["CWE-310","NVD-CWE-noinfo","CWE-310 CWE-310"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"8.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6.8","severity":"","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/","name":"https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Golang SSH Security : The Grumpy Troll","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/golang/go/issues/19767","name":"https://github.com/golang/go/issues/19767","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"x/crypto/ssh: make ClientConfig HostKeyCallback non-permissive by default · Issue #19767 · golang/go · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/97481","name":"http://www.securityfocus.com/bid/97481","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"Golang Go SSH Library CVE-2017-3204 Security Bypass Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991","name":"https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Third Party Advisory"],"title":"ssh: require host key checking in the ClientConfig · golang/crypto@e4e2799 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://godoc.org/golang.org/x/crypto/ssh","name":"https://godoc.org/golang.org/x/crypto/ssh","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"ssh - GoDoc","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-3204","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-3204","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Go","product":"SSH library","version":"affected prior to commit e4e2799","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2017","cve_id":"3204","vulnerable":"1","versionEndIncluding":"2017-03-17","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golang","cpe5":"crypto","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-05T14:16:28.305Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_MISC","x_transferred"],"url":"https://godoc.org/golang.org/x/crypto/ssh"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/golang/go/issues/19767"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991"},{"name":"97481","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/97481"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"SSH library","vendor":"Go","versions":[{"status":"affected","version":"prior to commit e4e2799"}]}],"datePublic":"2017-04-02T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-310","description":"CWE-310","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2017-04-07T09:57:01.000Z","orgId":"37e5125f-f79b-445b-8fad-9564f167944b","shortName":"certcc"},"references":[{"tags":["x_refsource_MISC"],"url":"https://godoc.org/golang.org/x/crypto/ssh"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/golang/go/issues/19767"},{"tags":["x_refsource_MISC"],"url":"https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991"},{"name":"97481","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/97481"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cert@cert.org","ID":"CVE-2017-3204","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"SSH library","version":{"version_data":[{"version_value":"prior to commit e4e2799"}]}}]},"vendor_name":"Go"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-310"}]}]},"references":{"reference_data":[{"name":"https://godoc.org/golang.org/x/crypto/ssh","refsource":"MISC","url":"https://godoc.org/golang.org/x/crypto/ssh"},{"name":"https://github.com/golang/go/issues/19767","refsource":"CONFIRM","url":"https://github.com/golang/go/issues/19767"},{"name":"https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/","refsource":"MISC","url":"https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/"},{"name":"https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991","refsource":"CONFIRM","url":"https://github.com/golang/crypto/commit/e4e2799dd7aab89f583e1d898300d96367750991"},{"name":"97481","refsource":"BID","url":"http://www.securityfocus.com/bid/97481"}]}}}},"cveMetadata":{"assignerOrgId":"37e5125f-f79b-445b-8fad-9564f167944b","assignerShortName":"certcc","cveId":"CVE-2017-3204","datePublished":"2017-04-04T14:00:00.000Z","dateReserved":"2016-12-05T00:00:00.000Z","dateUpdated":"2024-08-05T14:16:28.305Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2017-04-04 14:59:00","lastModifiedDate":"2025-04-20 01:37:25","problem_types":["CWE-310","NVD-CWE-noinfo","CWE-310 CWE-310"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:golang:crypto:*:*:*:*:*:*:*:*","versionEndIncluding":"2017-03-17","matchCriteriaId":"4C978A0F-3C80-4898-B1B3-DFF7F97D22DF"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2017","CveId":"3204","Ordinal":"1","Title":"CVE-2017-3204","CVE":"CVE-2017-3204","Year":"2017"},"notes":[{"CveYear":"2017","CveId":"3204","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2017-3204"},{"CveYear":"2017","CveId":"3204","Ordinal":"2","NoteData":"2017-04-04","Type":"Other","Title":"Published"},{"CveYear":"2017","CveId":"3204","Ordinal":"3","NoteData":"2017-04-07","Type":"Other","Title":"Modified"}]}}}