{"id":"CVE-2016-9121","aliases":["DEBIAN-CVE-2016-9121","EUVD-2021-1289","GHSA-86r9-39j9-99wp","GO-2020-0010"],"status":"published","title":"Elliptic Curve Key Disclosure in go-jose","description":"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.","severity":{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.01411,"percentile":0.72838,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-326"],"published":"2017-03-28T02:46:00Z","modified":"2026-10-24T10:48:49Z","fixes":[{"ecosystem":"Go","package":"gopkg.in/square/go-jose.v1","fixed_in":["1.0.4"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/square/go-jose","fixed_in":["1.0.4"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"golang-gopkg-square-go-jose.v1","fixed_in":["1.0.5-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"golang-gopkg-square-go-jose.v1","fixed_in":["1.0.5-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"golang-gopkg-square-go-jose.v1","fixed_in":["1.0.5-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"gopkg.in/square/go-jose.v1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/square/go-jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"golang-gopkg-square-go-jose.v1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"golang-gopkg-square-go-jose.v1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"golang-gopkg-square-go-jose.v1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5-1"}]}]},{"source":"osv","ecosystem":"Go","package":"gopkg.in/square/go-jose.v1","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/square/go-jose","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/square/go-jose","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}]}],"products":[{"vendor":"go-jose_project","product":"go-jose"}],"references":[{"url":"https://github.com/square/go-jose/commit/c7581939a3656bb65e89d64da0a52364a33d2507","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://hackerone.com/reports/164590","tags":["x_refsource_MISC","x_transferred","Permissions Required","report","web"]},{"url":"http://www.openwall.com/lists/oss-security/2016/11/03/1","tags":["x_refsource_MISC","x_transferred","Mailing List","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-9121","tags":["advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2016/11/03/1","tags":["web"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0010","tags":["web"]},{"url":"https://github.com/advisories/GHSA-86r9-39j9-99wp"},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-9121","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2016-9121","description":"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.","status":"published","published":"2017-03-28T02:46:00Z","modified":"2024-08-06T02:42:10.399Z","updated_at":"2026-11-02T14:33:31.764001Z"}],"euvd":[{"id":"EUVD-2021-1289","description":"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.","status":"published","published":"2017-03-28T02:46:00Z","modified":"2024-08-06T02:42:10Z","updated_at":"2026-11-03T02:22:28.196866Z"}],"ghsa":[{"id":"GHSA-86r9-39j9-99wp","title":"Elliptic Curve Key Disclosure in go-jose","description":"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.","status":"published","published":"2021-06-23T17:17:52Z","modified":"2023-02-16T02:04:17Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"cwes":["CWE-326"],"updated_at":"2026-11-02T14:36:45.67005Z"}],"nvd":[{"id":"CVE-2016-9121","description":"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.","status":"published","published":"2017-03-28T02:59:00.213Z","modified":"2026-06-17T00:55:33.213Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-326"],"updated_at":"2026-11-02T14:03:37.238712Z"}],"osv":[{"id":"CVE-2016-9121","description":"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.","status":"published","published":"2017-03-28T02:59:00.213Z","modified":"2026-10-24T10:48:49.009990956Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"updated_at":"2026-11-02T15:44:03.171316Z"},{"id":"DEBIAN-CVE-2016-9121","description":"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.","status":"published","published":"2017-03-28T02:59:00.213Z","modified":"2026-09-22T07:02:37.779469014Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"updated_at":"2026-11-02T15:45:28.207321Z"},{"id":"GHSA-86r9-39j9-99wp","title":"Elliptic Curve Key Disclosure in go-jose","description":"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.","status":"published","published":"2021-06-23T17:17:52Z","modified":"2023-11-08T03:58:37.751733Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"critical"}],"cwes":["CWE-326"],"updated_at":"2026-11-02T15:46:42.077781Z"},{"id":"GO-2020-0010","title":"Elliptic curve key disclosure in github.com/square/go-jose","description":"When using ECDH-ES an attacker can mount an invalid curve attack during decryption as the supplied public key is not checked to be on the same curve as the receivers private key.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
