CVE Vulnerabilities

CVE-2017-8932

Incorrect Calculation

Published: Jul 06, 2017 | Modified: Apr 20, 2025
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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
GoGolang*1.7.5 (including)
GoGolang1.8 (including)1.8 (including)
GoGolang1.8.1 (including)1.8.1 (including)
Red Hat Enterprise Linux 7RedHatgolang-0:1.8.3-1.el7*
GolangUbuntutrusty*
GolangUbuntuvivid/stable-phone-overlay*
GolangUbuntuvivid/ubuntu-core*
Golang-1.6Ubuntuesm-infra/xenial*
Golang-1.6Ubuntutrusty*
Golang-1.6Ubuntuxenial*
Golang-1.6Ubuntuyakkety*
Golang-1.7Ubuntuartful*
Golang-1.7Ubuntucosmic*
Golang-1.7Ubuntuyakkety*
Golang-1.7Ubuntuzesty*
Golang-1.8Ubuntuzesty*

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