CVE-2016-9121: Elliptic Curve Key Disclosure in go-jose
9.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.65621%
CWE
Published
6/23/2021
Updated
2/16/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
gopkg.in/square/go-jose.v1 | go | < 1.0.4 | 1.0.4 |
github.com/square/go-jose | go | < 1.0.4 | 1.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing curve validation
in three key areas: 1) cipher.DeriveECDHES
handled key derivation without curve checks (patched by adding IsOnCurve
validation
). 2) decryptKey
in asymmetric.go
processed messages with foreign curve keys (patched with curve check). 3) JWK
unmarshaling in jwk.go
accepted invalid EC points (patched with IsOnCurve
check). The commit diff shows these functions
were modified to add curve validation
, and the Go
vulnerability report (GO-2020-0010) explicitly lists these affected symbols.