9.1crit

CVE-2016-9121

Elliptic Curve Key Disclosure in go-jose

Also known as GHSA-86r9-39j9-99wp, GO-2020-0010

Published 9 y ago · modified 4 mo ago · JSON

CVSS
9.1
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.4%
percentile 73%
Public exploits
0
none known

Summary

go-jose before 1.0.4 suffers from an invalid curve attack for the ECDH-ES algorithm. When deriving a shared key using ECDH-ES for an encrypted message, go-jose neglected to check that the received public key on a message is on the same curve as the static private key of the receiver, thus making it vulnerable to an invalid curve attack.

Exploit prediction (EPSS)

1.41% probability of exploitation in the next 30 days, higher than 73% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.09.1CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD2.06.4AV:N/AC:L/Au:N/C:P/I:P/A:N
GitHub3.09.1CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected packages

EcosystemPackageAffectedFixed in
gogopkg.in/square/go-jose.v1
<1.0.4
1.0.4
gogithub.com/square/go-jose
<1.0.4
1.0.4

Affected products

  • n/a Go JOSE All versions before 1.0.4

Classification

Weakness
  • CWE-326 Inadequate Encryption Strength

References

  • github.com /square/go-jose/commit/c7581939a3656bb65e89d64da0a52364a33d2507 · x_refsource_MISC, x_transferred
  • hackerone.com /reports/164590 · x_refsource_MISC, x_transferred
  • openwall.com /lists/oss-security/2016/11/03/1 · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2016-9121 · advisory
  • pkg.go.dev /vuln/GO-2020-0010 · web
  • openwall.com /lists/oss-security/2016/11/03/1 · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.