{"id":"GHSA-2c7c-3mj9-8fqh","aliases":["GHSA-2c7c-3mj9-8fqh","GO-2023-2334"],"related":["CGA-qw38-mv85-36vx"],"kind":"vulnerability","state":"published","title":"Decryption of malicious PBES2 JWE objects can consume unbounded system resources","summary":"The go-jose package is subject to a \"billion hashes attack\" causing denial-of-service when decrypting JWE inputs. This occurs when an attacker can provide a PBES2 encrypted JWE blob with a very large p2c value that, when decrypted, produces a denial-of-service.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"The go-jose package is subject to a \"billion hashes attack\" causing denial-of-service when decrypting JWE inputs. This occurs when an attacker can provide a PBES2 encrypted JWE blob with a very large p2c value that, when decrypted, produces a denial-of-service.","format":"markdown","source":"ghsa"}],"published":"2023-11-21T15:39:17.000Z","modified":"2026-09-10T03:49:58.719Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.1"}],"ecosystem":"Go","package":"github.com/go-jose/go-jose/v3","purl":"pkg:golang/github.com/go-jose/go-jose/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.6.2"}],"ecosystem":"Go","package":"github.com/square/go-jose","purl":"pkg:golang/github.com/square/go-jose","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.1"}],"ecosystem":"Go","package":"github.com/go-jose/go-jose/v3","purl":"pkg:golang/github.com/go-jose/go-jose/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/square/go-jose","purl":"pkg:golang/github.com/square/go-jose","source":"go"}],"references":[{"url":"https://github.com/go-jose/go-jose/issues/64","tags":["report","web"],"sources":["ghsa","go"]},{"url":"https://github.com/go-jose/go-jose/commit/65351c27657d58960c2e6c9fbb2b00f818e50568","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/go-jose/go-jose/commit/a3d307244c3bc50b25a71aa0688764c32ec419c7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/go-jose/go-jose","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2c7c-3mj9-8fqh","url":"https://github.com/advisories/GHSA-2c7c-3mj9-8fqh","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:58.719Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2334","url":"https://pkg.go.dev/vuln/GO-2023-2334","licence":"CC-BY-4.0","modified":"2026-02-04T02:43:28.428Z"}],"updatedAt":"2026-11-25T22:56:23.589Z"}