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.

Project Subscriptions

Vendors Products
Go-jose Subscribe
Go-jose Subscribe
Go-jose Project Subscribe
Go-jose Subscribe
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-78h2-9frx-2jm8 Go JOSE Panics in JWE decryption
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

References
Link Providers
https://access.redhat.com/errata/RHSA-2026:10125 cve-icon
https://access.redhat.com/errata/RHSA-2026:10130 cve-icon
https://access.redhat.com/errata/RHSA-2026:10135 cve-icon
https://access.redhat.com/errata/RHSA-2026:10175 cve-icon
https://access.redhat.com/errata/RHSA-2026:11070 cve-icon
https://access.redhat.com/errata/RHSA-2026:11217 cve-icon
https://access.redhat.com/errata/RHSA-2026:11512 cve-icon
https://access.redhat.com/errata/RHSA-2026:11688 cve-icon
https://access.redhat.com/errata/RHSA-2026:11856 cve-icon
https://access.redhat.com/errata/RHSA-2026:11916 cve-icon
https://access.redhat.com/errata/RHSA-2026:11996 cve-icon
https://access.redhat.com/errata/RHSA-2026:12116 cve-icon
https://access.redhat.com/errata/RHSA-2026:12277 cve-icon
https://access.redhat.com/errata/RHSA-2026:12279 cve-icon
https://access.redhat.com/errata/RHSA-2026:13791 cve-icon
https://access.redhat.com/errata/RHSA-2026:13829 cve-icon
https://access.redhat.com/errata/RHSA-2026:16696 cve-icon
https://access.redhat.com/errata/RHSA-2026:17040 cve-icon
https://access.redhat.com/errata/RHSA-2026:17121 cve-icon
https://access.redhat.com/errata/RHSA-2026:17123 cve-icon
https://access.redhat.com/errata/RHSA-2026:17287 cve-icon
https://access.redhat.com/errata/RHSA-2026:17448 cve-icon
https://access.redhat.com/errata/RHSA-2026:17458 cve-icon
https://access.redhat.com/errata/RHSA-2026:17459 cve-icon
https://access.redhat.com/errata/RHSA-2026:17468 cve-icon
https://access.redhat.com/errata/RHSA-2026:17474 cve-icon
https://access.redhat.com/errata/RHSA-2026:17547 cve-icon
https://access.redhat.com/errata/RHSA-2026:17550 cve-icon
https://access.redhat.com/errata/RHSA-2026:17598 cve-icon
https://access.redhat.com/errata/RHSA-2026:17789 cve-icon
https://access.redhat.com/errata/RHSA-2026:18584 cve-icon
https://access.redhat.com/errata/RHSA-2026:18585 cve-icon
https://access.redhat.com/errata/RHSA-2026:19017 cve-icon
https://access.redhat.com/errata/RHSA-2026:19099 cve-icon
https://access.redhat.com/errata/RHSA-2026:19108 cve-icon
https://access.redhat.com/errata/RHSA-2026:19135 cve-icon
https://access.redhat.com/errata/RHSA-2026:19173 cve-icon
https://access.redhat.com/errata/RHSA-2026:19186 cve-icon
https://access.redhat.com/errata/RHSA-2026:19353 cve-icon
https://access.redhat.com/errata/RHSA-2026:19375 cve-icon
https://access.redhat.com/errata/RHSA-2026:19712 cve-icon
https://access.redhat.com/errata/RHSA-2026:19719 cve-icon
https://access.redhat.com/errata/RHSA-2026:19720 cve-icon
https://access.redhat.com/errata/RHSA-2026:19721 cve-icon
https://access.redhat.com/errata/RHSA-2026:20034 cve-icon
https://access.redhat.com/errata/RHSA-2026:20041 cve-icon
https://access.redhat.com/errata/RHSA-2026:20569 cve-icon
https://access.redhat.com/errata/RHSA-2026:20607 cve-icon
https://access.redhat.com/errata/RHSA-2026:20609 cve-icon
https://access.redhat.com/errata/RHSA-2026:20946 cve-icon
https://access.redhat.com/errata/RHSA-2026:21017 cve-icon
https://access.redhat.com/errata/RHSA-2026:21703 cve-icon
https://access.redhat.com/errata/RHSA-2026:21709 cve-icon
https://access.redhat.com/errata/RHSA-2026:21769 cve-icon
https://access.redhat.com/errata/RHSA-2026:21931 cve-icon
https://access.redhat.com/errata/RHSA-2026:21932 cve-icon
https://access.redhat.com/errata/RHSA-2026:22258 cve-icon
https://access.redhat.com/errata/RHSA-2026:22260 cve-icon
https://access.redhat.com/errata/RHSA-2026:22347 cve-icon
https://access.redhat.com/errata/RHSA-2026:22423 cve-icon
https://access.redhat.com/errata/RHSA-2026:22450 cve-icon
https://access.redhat.com/errata/RHSA-2026:22465 cve-icon
https://access.redhat.com/errata/RHSA-2026:22629 cve-icon
https://access.redhat.com/errata/RHSA-2026:22714 cve-icon
https://access.redhat.com/errata/RHSA-2026:22840 cve-icon
https://access.redhat.com/errata/RHSA-2026:22937 cve-icon
https://access.redhat.com/errata/RHSA-2026:23228 cve-icon
https://access.redhat.com/errata/RHSA-2026:23241 cve-icon
https://access.redhat.com/errata/RHSA-2026:23345 cve-icon
https://access.redhat.com/errata/RHSA-2026:23361 cve-icon
https://access.redhat.com/errata/RHSA-2026:24471 cve-icon
https://access.redhat.com/errata/RHSA-2026:24475 cve-icon
https://access.redhat.com/errata/RHSA-2026:24477 cve-icon
https://access.redhat.com/errata/RHSA-2026:24479 cve-icon
https://access.redhat.com/errata/RHSA-2026:24482 cve-icon
https://access.redhat.com/errata/RHSA-2026:24484 cve-icon
https://access.redhat.com/errata/RHSA-2026:24853 cve-icon
https://access.redhat.com/errata/RHSA-2026:24977 cve-icon
https://access.redhat.com/errata/RHSA-2026:25127 cve-icon
https://access.redhat.com/errata/RHSA-2026:25187 cve-icon
https://access.redhat.com/errata/RHSA-2026:25194 cve-icon
https://access.redhat.com/errata/RHSA-2026:25206 cve-icon
https://access.redhat.com/errata/RHSA-2026:25248 cve-icon
https://access.redhat.com/errata/RHSA-2026:25250 cve-icon
https://access.redhat.com/errata/RHSA-2026:25252 cve-icon
https://access.redhat.com/errata/RHSA-2026:26054 cve-icon
https://access.redhat.com/errata/RHSA-2026:26568 cve-icon
https://access.redhat.com/errata/RHSA-2026:26585 cve-icon
https://access.redhat.com/errata/RHSA-2026:26636 cve-icon
https://access.redhat.com/errata/RHSA-2026:27001 cve-icon
https://access.redhat.com/errata/RHSA-2026:27004 cve-icon
https://access.redhat.com/errata/RHSA-2026:27044 cve-icon
https://access.redhat.com/errata/RHSA-2026:27063 cve-icon
https://access.redhat.com/errata/RHSA-2026:27856 cve-icon
https://access.redhat.com/errata/RHSA-2026:28198 cve-icon
https://access.redhat.com/errata/RHSA-2026:29854 cve-icon
https://access.redhat.com/errata/RHSA-2026:30650 cve-icon
https://access.redhat.com/errata/RHSA-2026:32991 cve-icon
https://access.redhat.com/errata/RHSA-2026:33722 cve-icon
https://access.redhat.com/errata/RHSA-2026:34099 cve-icon
https://access.redhat.com/errata/RHSA-2026:34192 cve-icon
https://access.redhat.com/errata/RHSA-2026:34196 cve-icon
https://access.redhat.com/errata/RHSA-2026:34197 cve-icon
https://access.redhat.com/errata/RHSA-2026:34364 cve-icon
https://access.redhat.com/errata/RHSA-2026:34794 cve-icon
https://access.redhat.com/errata/RHSA-2026:35833 cve-icon
https://access.redhat.com/errata/RHSA-2026:36820 cve-icon
https://access.redhat.com/errata/RHSA-2026:37387 cve-icon
https://access.redhat.com/errata/RHSA-2026:40984 cve-icon
https://access.redhat.com/errata/RHSA-2026:41928 cve-icon
https://access.redhat.com/errata/RHSA-2026:41941 cve-icon
https://access.redhat.com/errata/RHSA-2026:41944 cve-icon
https://access.redhat.com/errata/RHSA-2026:44267 cve-icon
https://access.redhat.com/errata/RHSA-2026:46885 cve-icon
https://access.redhat.com/errata/RHSA-2026:47952 cve-icon
https://access.redhat.com/errata/RHSA-2026:48085 cve-icon
https://access.redhat.com/errata/RHSA-2026:48676 cve-icon
https://access.redhat.com/errata/RHSA-2026:48790 cve-icon
https://access.redhat.com/errata/RHSA-2026:49944 cve-icon
https://access.redhat.com/errata/RHSA-2026:51033 cve-icon
https://access.redhat.com/errata/RHSA-2026:8490 cve-icon
https://access.redhat.com/errata/RHSA-2026:8491 cve-icon
https://access.redhat.com/errata/RHSA-2026:8493 cve-icon
https://access.redhat.com/errata/RHSA-2026:9385 cve-icon
https://access.redhat.com/errata/RHSA-2026:9388 cve-icon
https://access.redhat.com/errata/RHSA-2026:9448 cve-icon
https://access.redhat.com/errata/RHSA-2026:9453 cve-icon
https://access.redhat.com/security/cve/CVE-2026-34986 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2455470 cve-icon
https://github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8 cve-icon cve-icon cve-icon
https://nvd.nist.gov/vuln/detail/CVE-2026-34986 cve-icon
https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants cve-icon cve-icon cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34986.json cve-icon
https://www.cve.org/CVERecord?id=CVE-2026-34986 cve-icon
History

Mon, 04 May 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Go-jose Project
Go-jose Project go-jose
CPEs cpe:2.3:a:go-jose_project:go-jose:*:*:*:*:*:*:*:*
Vendors & Products Go-jose Project
Go-jose Project go-jose

Tue, 07 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-131
References
Metrics threat_severity

None

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

threat_severity

Important


Tue, 07 Apr 2026 00:00:00 +0000

Type Values Removed Values Added
First Time appeared Go-jose
Go-jose go-jose
Vendors & Products Go-jose
Go-jose go-jose

Mon, 06 Apr 2026 16:45:00 +0000

Type Values Removed Values Added
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.
Title Go JOSE affect by a panic in JWE decryption
Weaknesses CWE-248
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-13T12:04:24.481Z

Reserved: 2026-03-31T19:38:31.617Z

Link: CVE-2026-34986

cve-icon Vulnrichment

Updated: 2026-08-13T12:04:24.481Z

cve-icon NVD

Status : Modified

Published: 2026-04-06T17:17:11.870

Modified: 2026-08-13T13:18:31.100

Link: CVE-2026-34986

cve-icon Redhat

Severity : Important

Publid Date: 2026-04-06T16:22:45Z

Links: CVE-2026-34986 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-08T19:50:41Z

Weaknesses