{"id":"GHSA-4w3g-jfj2-cw2q","summary":"Go JOSE: Panic during CBC-HMAC processing","details":"### Summary\n\nDecrypting a ciphertext with \"A128CBC-HS256\", \"A192CBC-HS384\", or \"A256CBC-HS512\" can result in a panic on untrusted input.\n\nNote this advisory is the same as https://github.com/go-jose/go-jose/security/advisories/GHSA-6mp9-8xrw-74r4.\n\n### Details\n\nInsufficient validation of parameters can lead to attempting to index into an empty buffer. See https://github.com/go-jose/go-jose/pull/292.\n\n### Workarounds\n\nIf the application does not require the CBC-HMAC modes for content encryption, and is using github.com/go-jose/go-jose/v4, do not include them in the list of ContentEncryption algorithms passed to ParseEncrypted / ParseEncryptedJSON / ParseEncryptedCompact.\n\n### Impact\n\nDenial of service vulnerability. Any application which decrypts untrusted ciphertexts with the indicated algorithms is affected.\n\n### Acknowledgements\n\nThanks to Joshua Rogers of AISLE Research for reporting this problem.","aliases":["CVE-2026-116585"],"modified":"2026-10-28T21:30:06.790863342Z","published":"2026-10-28T21:14:00Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-10-28T21:14:00Z","nvd_published_at":"2026-10-26T22:16:54Z","cwe_ids":["CWE-129"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/go-jose/go-jose/security/advisories/GHSA-4w3g-jfj2-cw2q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116585"},{"type":"WEB","url":"https://github.com/go-jose/go-jose/pull/292"},{"type":"WEB","url":"https://github.com/go-jose/go-jose/commit/35883f7999e87cbd1b1f4cda07fdad8cd71c3dd6"},{"type":"WEB","url":"https://github.com/go-jose/go-jose/commit/74114c2fa22669a2b2a296746eaa82e15566fd54"},{"type":"PACKAGE","url":"https://github.com/go-jose/go-jose"},{"type":"WEB","url":"https://github.com/go-jose/go-jose/releases/tag/v4.1.5"}],"affected":[{"package":{"name":"github.com/go-jose/go-jose/v4","ecosystem":"Go","purl":"pkg:golang/github.com/go-jose/go-jose/v4"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.1.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-4w3g-jfj2-cw2q/GHSA-4w3g-jfj2-cw2q.json"}},{"package":{"name":"github.com/go-jose/go-jose/v3","ecosystem":"Go","purl":"pkg:golang/github.com/go-jose/go-jose/v3"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"3.0.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-4w3g-jfj2-cw2q/GHSA-4w3g-jfj2-cw2q.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}]}