{"answers":{"affected":"3 open source packages ship an affected version, including golang.org/x/crypto. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-3204 in the wild and no public exploit code.","fix":"Upgrade golang.org/x/crypto to 0.0.0-20170330155735-e4e2799dd7aa or later.","what":"CVE-2017-3204 is a high-severity vulnerability in Go SSH library, published on 4 Apr 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-3204 and fix it if it is affected.\n\nWhat it is: CVE-2017-3204 is a high-severity vulnerability in Go SSH library, published on 4 Apr 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2017-3204 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang.org/x/crypto (Go): affected all versions; fixed in 0.0.0-20170330155735-e4e2799dd7aa\n- golang.org/x/crypto (Go): affected all versions; fixed in 0.0.0-20170330155735-e4e2799dd7aa\n- golang.org/x/crypto (Go): affected all versions; fixed in 0.0.0-20170330155735-e4e2799dd7aa\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2017-3204/ (Markdown: https://insights.sbomify.com/CVE-2017-3204/index.md)","id":"CVE-2017-3204","markdown":"https://insights.sbomify.com/CVE-2017-3204/index.md","name":"CVE-2017-3204","record":{"aliases":["DEBIAN-CVE-2017-3204","GHSA-xhjq-w7xm-p8qj","GO-2020-0013","UBUNTU-CVE-2017-3204"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go SSH library","requires_auth":"none","summary":"The Go SSH library failed to verify host keys by default, allowing man-in-the-middle attacks unless developers explicitly configured verification.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"certcc","cpe":[{"product":"crypto","vendor":"golang"}],"cvss":{"score":8.1,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-310","name":null}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"golang.org/x/crypto/ssh Man-in-the-Middle attack","id":"CVE-2017-3204","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2017"},"n_packages":3,"n_references":5,"next":{"headline":"XML external entity in Flamingo amf-serializer","id":"CVE-2017-3206"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20170330155735-e4e2799dd7aa"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/crypto","purl":null,"source":"GHSA-xhjq-w7xm-p8qj"},{"ecosystem":"Go","fixed":["0.0.0-20170330155735-e4e2799dd7aa"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/crypto","purl":"pkg:golang/golang.org/x/crypto","source":"GHSA-xhjq-w7xm-p8qj"},{"ecosystem":"Go","fixed":["0.0.0-20170330155735-e4e2799dd7aa"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/crypto","purl":"pkg:golang/golang.org/x/crypto","source":"GO-2020-0013"}],"prev":{"headline":"Pivotal/Spring Spring-flex's Action Message Format (AMF3) Java implementation is vulnerable to insecure deserialization","id":"CVE-2017-3203"},"products":["SSH library"],"published":"2017-04-04","related":[{"cvss_score":10,"headline":"Invoking VerifiedPublicKeyCallback permissions skip enforcement in golang.org/x/crypto/ssh","id":"CVE-2026-46595","kev_date_added":null,"published":"2026-05-22"},{"cvss_score":9.1,"headline":"Invoking client can cause server deadlock on unexpected responses in golang.org/x/crypto/ssh","id":"CVE-2026-39830","kev_date_added":null,"published":"2026-05-22"},{"cvss_score":9.1,"headline":"Invoking bypass of FIDO/U2F security keys physical interaction in golang.org/x/crypto/ssh","id":"CVE-2026-39831","kev_date_added":null,"published":"2026-05-22"},{"cvss_score":9.1,"headline":"Invoking agent constraints dropped when forwarding keys in golang.org/x/crypto/ssh/agent","id":"CVE-2026-39832","kev_date_added":null,"published":"2026-05-22"},{"cvss_score":9.1,"headline":"Invoking key constraints not enforced in golang.org/x/crypto/ssh/agent","id":"CVE-2026-39833","kev_date_added":null,"published":"2026-05-22"},{"cvss_score":9.1,"headline":"Invoking infinite loop on large channel writes in golang.org/x/crypto/ssh","id":"CVE-2026-39834","kev_date_added":null,"published":"2026-05-22"},{"cvss_score":9.1,"headline":"Invoking auth bypass via unenforced @revoked status in golang.org/x/crypto/ssh/knownhosts","id":"CVE-2026-42508","kev_date_added":null,"published":"2026-05-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["Go"]},"summary":"The Go SSH library failed to verify host keys by default, allowing man-in-the-middle attacks unless developers explicitly configured verification.","url":"https://insights.sbomify.com/CVE-2017-3204/"}