CVE Vulnerabilities

CVE-2017-8932

Incorrect Calculation

Published: Jul 06, 2017 | Modified: Nov 07, 2023
CVSS 3.x
5.9
MEDIUM
Source:
NVD
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
4.8 MODERATE
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Ubuntu
LOW

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.

Weakness

The product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management.

Affected Software

Name Vendor Start Version End Version
Go Golang * 1.7.5 (including)
Go Golang 1.8 (including) 1.8 (including)
Go Golang 1.8.1 (including) 1.8.1 (including)
Red Hat Enterprise Linux 7 RedHat golang-0:1.8.3-1.el7 *
Golang Ubuntu trusty *
Golang Ubuntu vivid/stable-phone-overlay *
Golang Ubuntu vivid/ubuntu-core *
Golang-1.6 Ubuntu esm-infra/xenial *
Golang-1.6 Ubuntu trusty *
Golang-1.6 Ubuntu xenial *
Golang-1.6 Ubuntu yakkety *
Golang-1.7 Ubuntu artful *
Golang-1.7 Ubuntu cosmic *
Golang-1.7 Ubuntu yakkety *
Golang-1.7 Ubuntu zesty *
Golang-1.8 Ubuntu zesty *

Potential Mitigations

  • Use languages, libraries, or frameworks that make it easier to handle numbers without unexpected consequences.
  • Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++).
  • Use languages, libraries, or frameworks that make it easier to handle numbers without unexpected consequences.
  • Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++).

References