{"cve":"CVE-2026-34986","nvd":{"published":"2026-04-06T17:17:11.870","modified":"2026-10-23T23:10:00.157","status":"Modified","description":"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.4 and 3.0.5, decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encrypted_key field is empty. The panic happens when cipher.KeyUnwrap() in key_wrap.go attempts to allocate a slice with a zero or negative length based on the length of the encrypted_key. This code path is reachable from ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() followed by Decrypt() on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected. This panic is also reachable by calling cipher.KeyUnwrap() directly with any ciphertext parameter less than 16 bytes long, but calling this function directly is less common. Panics can lead to denial of service. This vulnerability is fixed in 4.1.4 and 3.0.5.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-248","CWE-131"],"references":["https://github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8","https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants","https://access.redhat.com/errata/RHSA-2026:10125","https://access.redhat.com/errata/RHSA-2026:10130","https://access.redhat.com/errata/RHSA-2026:10135"],"products":["go-jose_project:go-jose"],"source":"nvd","synced_at":"2026-10-24T16:53:27.712498749+00:00"},"epss":{"cve":"CVE-2026-34986","score":0.00651,"percentile":0.50908,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-78h2-9frx-2jm8","url":"https://osv.dev/vulnerability/GHSA-78h2-9frx-2jm8","summary":"Go JOSE Panics in JWE decryption","modified":"2026-09-10T03:50:43.639043187Z","packages":[{"ecosystem":"Go","name":"github.com/go-jose/go-jose/v4","purl":"pkg:golang/github.com/go-jose/go-jose/v4","ranges":["<4.1.4"],"fixed":["4.1.4"]},{"ecosystem":"Go","name":"github.com/go-jose/go-jose/v3","purl":"pkg:golang/github.com/go-jose/go-jose/v3","ranges":["<3.0.5"],"fixed":["3.0.5"]},{"ecosystem":"Go","name":"github.com/go-jose/go-jose","purl":"pkg:golang/github.com/go-jose/go-jose","ranges":["<=2.6.3"],"fixed":[]}]},{"id":"GO-2026-4945","url":"https://osv.dev/vulnerability/GO-2026-4945","summary":"Go JOSE Panics in JWE decryption in github.com/go-jose/go-jose","modified":"2026-06-01T21:14:16.019255008Z","packages":[{"ecosystem":"Go","name":"github.com/go-jose/go-jose/v3","purl":"pkg:golang/github.com/go-jose/go-jose/v3","ranges":["<3.0.5"],"fixed":["3.0.5"]},{"ecosystem":"Go","name":"github.com/go-jose/go-jose/v4","purl":"pkg:golang/github.com/go-jose/go-jose/v4","ranges":["<4.1.4"],"fixed":["4.1.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}