CVE-2017-8932
Incorrect computation for P-256 curves in crypto/elliptic
Also known as GO-2022-0187
Published 9 y ago · modified 4 mo ago · JSON
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.
Exploit prediction (EPSS)
2.23% probability of exploitation in the next 30 days, higher than 83% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | stdlib | >=1.6.0-0, <1.7.6 >=1.8.0-0, <1.8.2 | 1.7.6 1.8.2 |
Classification
- Weakness
- CWE-682 Incorrect Calculation
References
- groups.google.com /d/msg/golang-announce/B5ww0iFt1_Q/TgUFJV14BgAJ · mailing-list, x_refsource_MLIST, x_transferred
- github.com /golang/go/commit/9294fa2749ffee7edbbb817a0ef9fe633136fa9c · x_refsource_CONFIRM, x_transferred
- access.redhat.com /errata/RHSA-2017:1859 · vendor-advisory, x_refsource_REDHAT, x_transferred
- lists.opensuse.org /opensuse-updates/2017-06/msg00080.html · vendor-advisory, x_refsource_SUSE, x_transferred
- lists.opensuse.org /opensuse-updates/2017-06/msg00079.html · vendor-advisory, x_refsource_SUSE, x_transferred
- bugzilla.redhat.com /show_bug.cgi?id=1455191 · x_refsource_MISC, x_transferred
- github.com /golang/go/issues/20040 · x_refsource_CONFIRM, x_transferred
- go-review.googlesource.com /c/41070/ · x_refsource_CONFIRM, x_transferred
- lists.fedoraproject.org /archives/list/package-announce%40lists.fedoraproject.org/message/LZH4T47ROLZ6YEZBDVXVS2KI · vendor-advisory, x_refsource_FEDORA, x_transferred
- go.dev /cl/41070 · fix
- go.googlesource.com /go/+/9294fa2749ffee7edbbb817a0ef9fe633136fa9c · fix
- go.dev /issue/20040 · report
- groups.google.com /g/golang-announce/c/B5ww0iFt1_Q/m/TgUFJV14BgAJ · web
Sources
- CVE List: CVE-2017-8932
- NVD: CVE-2017-8932
- OSV: GO-2022-0187
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.