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
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.
- Published
- Jul 6, 2017
- Updated
- Jun 16, 2026
- EPSS
- 2.2% · 82th percentile
- CWE
- CWE-682
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
24
Monitor
Low priority for now.
- CVSS
- 23 / 40 · 5.9 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.2%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| golang | go | cpe:2.3:a:golang:go |
| novell | suse package hub for suse linux enterprise | cpe:2.3:a:novell:suse_package_hub_for_suse_linux_enterprise |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| opensuse | leap | cpe:2.3:o:opensuse:leap |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora25
- golang goup to 1.7.5 inclusive
- golang go1.8
- golang go1.8.1
- novell suse package hub for suse linux enterprise12
- opensuse leap42.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Go | stdlib | from 1.6.0-0 · before 1.7.6 | 1.7.6 |
| Go | stdlib | from 1.8.0-0 · before 1.8.2 | 1.8.2 |
| openSUSE:Tumbleweed | go | before 1.17-1.1 | 1.17-1.1 |
| openSUSE:Tumbleweed | go1.10 | before 1.10.8-8.2 | 1.10.8-8.2 |
| openSUSE:Tumbleweed | go1.11 | before 1.11.13-10.5 | 1.11.13-10.5 |
| openSUSE:Tumbleweed | go1.12 | before 1.12.17-4.8 | 1.12.17-4.8 |
| openSUSE:Tumbleweed | go1.9 | before 1.9.7-11.2 | 1.9.7-11.2 |
| Red Hat:enterprise_linux:7::server | golang | before 0:1.8.3-1.el7 | 0:1.8.3-1.el7 |
| Red Hat:enterprise_linux:7::server | golang-bin | before 0:1.8.3-1.el7 | 0:1.8.3-1.el7 |
| Red Hat:enterprise_linux:7::server | golang-docs | before 0:1.8.3-1.el7 | 0:1.8.3-1.el7 |
| Red Hat:enterprise_linux:7::server | golang-misc | before 0:1.8.3-1.el7 | 0:1.8.3-1.el7 |
| Red Hat:enterprise_linux:7::server | golang-src | before 0:1.8.3-1.el7 | 0:1.8.3-1.el7 |
| Red Hat:enterprise_linux:7::server | golang-tests | before 0:1.8.3-1.el7 | 0:1.8.3-1.el7 |
| SUSE:Linux Enterprise Module for Containers 12 | docker-distribution | before 2.6.1-15.2 | 2.6.1-15.2 |
| SUSE:OpenStack Cloud 6 | containerd | before 0.2.5+gitr639_422e31c-20.2 | 0.2.5+gitr639_422e31c-20.2 |
| SUSE:OpenStack Cloud 6 | docker | before 17.04.0_ce-98.2 | 17.04.0_ce-98.2 |
| SUSE:OpenStack Cloud 6 | golang-github-docker-libnetwork | before 0.0.0+git20170119.7b2b1fe-4.1 | 0.0.0+git20170119.7b2b1fe-4.1 |
| SUSE:OpenStack Cloud 6 | runc | before 0.1.1+gitr2947_9c2d8d1-20.3 | 0.1.1+gitr2947_9c2d8d1-20.3 |
| SUSE:Package Hub 12 | go | before 1.7.0-12.1 | 1.7.0-12.1 |
Same product
golang: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-7187The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import path (get/vcs.go only 54Plan
- CVE-2018-16873In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag and52Plan
- CVE-2021-38297Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when GOARCH42Plan
- CVE-2019-14809net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization bypass in some applica42Plan
- CVE-2015-5739The net/http library in net/textproto/reader.go in Go before 1.4.3 does not properly parse HTTP header keys, which allows remote attackers t42Plan
- CVE-2017-15041Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution.42Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Go:stdlib | 1.7.6 | Package registry (OSV) |
| Go:stdlib | 1.8.2 | Package registry (OSV) |
| opensuse:go | 1.17-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:go1.10 | 1.10.8-8.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:go1.11 | 1.11.13-10.5 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:go1.12 | 1.12.17-4.8 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:go1.9 | 1.9.7-11.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:golang | 0:1.8.3-1.el7 · Red Hat:enterprise_linux:7::server | Package registry (OSV) |
| red hat:golang-bin | 0:1.8.3-1.el7 · Red Hat:enterprise_linux:7::server | Package registry (OSV) |
| red hat:golang-docs | 0:1.8.3-1.el7 · Red Hat:enterprise_linux:7::server | Package registry (OSV) |
| red hat:golang-misc | 0:1.8.3-1.el7 · Red Hat:enterprise_linux:7::server | Package registry (OSV) |
| red hat:golang-src | 0:1.8.3-1.el7 · Red Hat:enterprise_linux:7::server | Package registry (OSV) |
| red hat:golang-tests | 0:1.8.3-1.el7 · Red Hat:enterprise_linux:7::server | Package registry (OSV) |
| suse:containerd | 0.2.5+gitr639_422e31c-20.2 · SUSE:OpenStack Cloud 6 | Package registry (OSV) |
| suse:docker | 17.04.0_ce-98.2 · SUSE:OpenStack Cloud 6 | Package registry (OSV) |
| suse:docker-distribution | 2.6.1-15.2 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
| suse:go | 1.7.0-12.1 · SUSE:Package Hub 12 | Package registry (OSV) |
| suse:golang-github-docker-libnetwork | 0.0.0+git20170119.7b2b1fe-4.1 · SUSE:OpenStack Cloud 6 | Package registry (OSV) |
| suse:runc | 0.1.1+gitr2947_9c2d8d1-20.3 · SUSE:OpenStack Cloud 6 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-682 · Incorrect CalculationCVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.opensuse.org/opensuse-updates/2017-06/msg00079.html
- lists.opensuse.org/opensuse-updates/2017-06/msg00080.html
- access.redhat.com/errata/RHSA-2017:1859
- bugzilla.redhat.com/show_bug.cgi?id=1455191
- github.com/golang/go/commit/9294fa2749ffee7edbbb817a0ef9fe633136fa9c
- github.com/golang/go/issues/20040
- go-review.googlesource.com/c/41070/
- groups.google.com/d/msg/golang-announce/B5ww0iFt1_Q/TgUFJV14BgAJ
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LZH4T47ROLZ6YEZBDVXVS2KISTDMXAPS/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.