CVE-2026-34986
CVE-2026-34986 · Go JOSE affect by a panic in JWE decryption
This page contains facts from public vulnerability sources. Check the original advisory before updating.
This page shows selected source facts. See the linked advisories for the complete description and affected versions.
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 7.5 · High · EPSS 0.7% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
go-jose
- Versions
- >= 4.0.0, < 4.1.4: Affected
- < 3.0.5: Affected
No fix published
golang-github-go-jose-go-jose Debian:13
- Versions
- 4.0.5-1
- 4.1.3-1
- 4.1.4-1
- 4.1.4-1~bpo13+1
- 4.1.4-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-jose-go-jose Debian:14
- Versions
- 4.0.5-1
- 4.1.3-1
- 4.1.4-1~bpo13+1
- Affected ranges
- ECOSYSTEM: < 4.1.4-1
Update to 4.1.4-1
golang-github-go-jose-go-jose.v3 Debian:13
- Versions
- 3.0.3-6
- 3.0.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-jose-go-jose.v3 Debian:14
- Versions
- 3.0.3-6
- Affected ranges
- ECOSYSTEM: < 3.0.5-1
Update to 3.0.5-1
golang-gopkg-square-go-jose.v1 Debian:12
- Versions
- 1.1.2-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v1 Debian:13
- Versions
- 1.1.2-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v1 Debian:14
- Versions
- 1.1.2-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v2 Debian:12
- Versions
- 2.6.0-2
- 2.6.3-1
- 2.6.3-2
- 2.6.3-3
- 2.6.3-4
- 2.6.3-4~exp0
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v2 Debian:13
- Versions
- 2.6.3-3
- 2.6.3-4
- 2.6.3-4~exp0
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v2 Debian:14
- Versions
- 2.6.3-3
- 2.6.3-4
- 2.6.3-4~exp0
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v2 Ubuntu:20.04:LTS
- Versions
- 2.3.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v2 Ubuntu:22.04:LTS
- Versions
- 2.5.1-2
- 2.6.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-jose-go-jose Ubuntu:24.04:LTS
- Versions
- 3.0.1-1
- 3.0.1-2
- 4.0.1-4
- 4.0.1-4ubuntu0.1
- 4.0.1-4ubuntu0.2
- 4.0.1-4ubuntu0.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v2 Ubuntu:24.04:LTS
- Versions
- 2.6.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-jose-go-jose Ubuntu:25.10
- Versions
- 4.0.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-jose-go-jose.v3 Ubuntu:25.10
- Versions
- 3.0.3-6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v2 Ubuntu:25.10
- Versions
- 2.6.3-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-jose-go-jose Ubuntu:26.10
- Versions
- 4.0.5-1build1
- 4.1.4-1
- 4.1.4-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-jose-go-jose.v3 Ubuntu:26.10
- Versions
- 3.0.3-6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v2 Ubuntu:26.10
- Versions
- 2.6.3-3
- 2.6.3-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-jose-go-jose.v3 Ubuntu:26.04:LTS
- Versions
- 3.0.3-6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-gopkg-square-go-jose.v2 Ubuntu:26.04:LTS
- Versions
- 2.6.3-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-jose-go-jose Ubuntu:Pro:26.04:LTS
- Versions
- 4.0.5-1
- 4.0.5-1build1
- 4.0.5-1ubuntu0.26.04.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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/security/cve/CVE-2026-34986
- https://bugzilla.redhat.com/show_bug.cgi?id=2455470
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34986.json
- https://access.redhat.com/errata/RHSA-2026:65906
- https://access.redhat.com/errata/RHSA-2026:65838
- https://access.redhat.com/errata/RHSA-2026:62548
- https://access.redhat.com/errata/RHSA-2026:66385
- https://access.redhat.com/errata/RHSA-2026:17789
- https://access.redhat.com/errata/RHSA-2026:60452
- https://access.redhat.com/errata/RHSA-2026:60444
- https://access.redhat.com/errata/RHSA-2026:60449
- https://access.redhat.com/errata/RHSA-2026:20569
- https://access.redhat.com/errata/RHSA-2026:19719
- https://access.redhat.com/errata/RHSA-2026:27856
- https://access.redhat.com/errata/RHSA-2026:17040
- https://access.redhat.com/errata/RHSA-2026:16696
- https://access.redhat.com/errata/RHSA-2026:22937
- https://access.redhat.com/errata/RHSA-2026:19135
- https://access.redhat.com/errata/RHSA-2026:22450
- https://access.redhat.com/errata/RHSA-2026:19017
- https://access.redhat.com/errata/RHSA-2026:33722
- https://nvd.nist.gov/vuln/detail/CVE-2026-34986