{"id":"GHSA-86r9-39j9-99wp","summary":"Elliptic Curve Key Disclosure in go-jose","details":"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.","aliases":["CVE-2016-9121","GO-2020-0010"],"modified":"2023-11-01T04:47:14.052132Z","published":"2021-06-23T17:17:52Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-326"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-05-20T16:54:50Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-9121"},{"type":"WEB","url":"https://github.com/square/go-jose/commit/c7581939a3656bb65e89d64da0a52364a33d2507"},{"type":"WEB","url":"https://hackerone.com/reports/164590"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2020-0010"},{"type":"WEB","url":"https://www.openwall.com/lists/oss-security/2016/11/03/1"}],"affected":[{"package":{"name":"gopkg.in/square/go-jose.v1","ecosystem":"Go","purl":"pkg:golang/gopkg.in/square/go-jose.v1"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-86r9-39j9-99wp/GHSA-86r9-39j9-99wp.json"}},{"package":{"name":"github.com/square/go-jose","ecosystem":"Go","purl":"pkg:golang/github.com/square/go-jose"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-86r9-39j9-99wp/GHSA-86r9-39j9-99wp.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}