critical9.1
CVE-2016-9121
Elliptic Curve Key Disclosure in go-jose
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | gopkg.in/square/go-jose.v1 | < 1.0.4 | 1.0.4 |
| go | github.com/square/go-jose | < 1.0.4 | 1.0.4 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Go-Jose Project | Go-Jose | through 1.0.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- http://www.openwall.com/lists/oss-security/2016/11/03/1
- https://github.com/square/go-jose/commit/c7581939a3656bb65e89d64da0a52364a33d2507
- https://hackerone.com/reports/164590
- https://github.com/advisories/GHSA-86r9-39j9-99wp
- https://nvd.nist.gov/vuln/detail/CVE-2016-9121
- https://www.openwall.com/lists/oss-security/2016/11/03/1
- https://pkg.go.dev/vuln/GO-2020-0010