Skip to main content
← All vulnerabilities
CVE-2017-8932GO-2022-0187

A bug in the standard library ScalarMult implementation of curve P-256 for amd64 architectures in Go before 1.7.6 and 1.8.x before 1.8.2 cau

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.7.6, 1.8.2
None on Exploit-DB, Metasploit or GitHub

Summary

A bug in the standard library ScalarMult implementation of curve P-256 for amd64 architectures in Go before 1.7.6 and 1.8.x before 1.8.2 causes incorrect results to be generated for specific input points. An adaptive attack can be mounted to progressively extract the scalar input to ScalarMult by submitting crafted points and observing failures to the derive correct output. This leads to a full key recovery attack against static ECDH, as used in popular JWT libraries.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • stdlibGo

    From 1.6.0-0 · fixed in 1.7.6; From 1.8.0-0 · fixed in 1.8.2

References 9

groups.google.com

GitHub · golang/go

access.redhat.com

lists.opensuse.org

bugzilla.redhat.com

go-review.googlesource.com

lists.fedoraproject.org