8.1
CWE
310
Advisory Published
Advisory Published
Updated

CVE-2017-3204

First published: Tue Apr 04 2017(Updated: )

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.

Credit: cret@cert.org cret@cert.org

Affected SoftwareAffected VersionHow to fix
go/golang.org/x/crypto<0.0.0-20170330155735-e4e2799dd7aa
0.0.0-20170330155735-e4e2799dd7aa
golang.org/x/crypto<=2017-03-17

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2017-3204?

    CVE-2017-3204 is considered a medium severity vulnerability due to the risk of man-in-the-middle attacks.

  • How do I fix CVE-2017-3204?

    To fix CVE-2017-3204, ensure that the ClientConfig.HostKeyCallback is explicitly set to verify host keys.

  • Which versions of the Go SSH library are affected by CVE-2017-3204?

    CVE-2017-3204 affects versions of the Go SSH library prior to the commit e4e2799.

  • What type of attack does CVE-2017-3204 facilitate?

    CVE-2017-3204 facilitates man-in-the-middle attacks by not verifying host keys.

  • Is there a default security risk with the Go SSH library as per CVE-2017-3204?

    Yes, the default behavior of the Go SSH library does not verify host keys, posing a security risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203