{"id":"CVE-2026-116585","aliases":["CVE-2026-116585","GHSA-4w3g-jfj2-cw2q"],"related":[],"kind":"vulnerability","state":"published","title":"Go JOSE: Panic during CBC-HMAC processing","summary":"Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.5, decrypting untrusted JWE ciphertext with A128CBC-HS256, A192CBC-HS384, or A256CBC-HS512 can pass an empty ciphertext buffer to CBC-HMAC unpadding. Insufficient validation allows the empty buffer to be indexed, causing a panic and denial of service. Applications that decrypt attacker-controlled ciphertext with one of these content-encryption algorithms are affected. This issue is fixed in version 4.1.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.5, decrypting untrusted JWE ciphertext with A128CBC-HS256, A192CBC-HS384, or A256CBC-HS512 can pass an empty ciphertext buffer to CBC-HMAC unpadding. Insufficient validation allows the empty buffer to be indexed, causing a panic and denial of service. Applications that decrypt attacker-controlled ciphertext with one of these content-encryption algorithms are affected. This issue is fixed in version 4.1.5.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-10-26T21:06:35.189Z","modified":"2026-10-31T02:17:33.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"version":"< 4.1.5","status":"affected"}],"vendor":"go-jose","product":"go-jose","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.1.5"}],"ecosystem":"Go","package":"github.com/go-jose/go-jose/v4","purl":"pkg:golang/github.com/go-jose/go-jose/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"3.0.5"}],"ecosystem":"Go","package":"github.com/go-jose/go-jose/v3","purl":"pkg:golang/github.com/go-jose/go-jose/v3","source":"ghsa"}],"references":[{"url":"https://github.com/go-jose/go-jose/security/advisories/GHSA-4w3g-jfj2-cw2q","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/go-jose/go-jose/pull/292","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/go-jose/go-jose/commit/35883f7999e87cbd1b1f4cda07fdad8cd71c3dd6","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/go-jose/go-jose/commit/74114c2fa22669a2b2a296746eaa82e15566fd54","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/go-jose/go-jose/releases/tag/v4.1.5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116585","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/go-jose/go-jose","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-31T01:52:03.149Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116585","url":"https://www.cve.org/CVERecord?id=CVE-2026-116585","licence":"CVE Terms of Use","modified":"2026-10-31T01:52:17.352Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4w3g-jfj2-cw2q","url":"https://github.com/advisories/GHSA-4w3g-jfj2-cw2q","licence":"CC-BY-4.0","modified":"2026-10-28T21:30:06.790Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116585","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116585","licence":"Public domain","modified":"2026-10-31T02:17:33.130Z"}],"updatedAt":"2026-11-25T22:59:47.295Z","epss":{"score":0.00318,"percentile":0.26785,"date":"2026-12-01T12:00:22.000Z"}}