7.5High

CVE-2026-34986Go JOSE affect by a panic in JWE decryption

go-jose go-jose; Red Hat Cryostat 4 on RHEL 9; Red Hat Red Hat Enterprise Linux 10; Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support Published: (7 months ago)

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.

Weakness (CWE): CWE-248CWE-131

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
acm 2.14 —
advanced cluster security 4.10 —
advanced cluster security 4.8 —
advanced cluster security 4.9 —
cryostat 4 —
go-jose go-jose >= 4.0.0, < 4.1.4, < 3.0.5
logging 6.0 —
logging 6.2 —
logging 6.4 —
multicluster engine 2.10 —
multicluster engine 2.11 —
multicluster engine 2.6 —
multicluster engine 2.7 —
multicluster engine 2.8 —
multicluster engine 2.9 —
multicluster globalhub 1.3 —
multicluster globalhub 1.4 —
multicluster globalhub 1.5 —
multicluster globalhub 1.6 —
openshift 4.12 —
openshift 4.13 —
openshift 4.16 —
openshift 4.17 —
openshift 4.18 —
openshift 4.19 —
openshift 4.20 —
openshift 4.21 —
openshift 4.22 —
openshift ai 2.25 —
openshift ai 3.3 —
openshift api data protection 1.3 —
openshift api data protection 1.4 —
openshift api data protection 1.5 —
openshift custom metrics autoscaler 2.19 —
openshift data foundation 4.17 —
openshift data foundation 4.18 —
openshift data foundation 4.19 —
openshift data foundation 4.20 —
openshift data foundation 4.21 —
openshift data foundation 4.22 —
openshift devspaces 3.27 —
openshift devspaces 3.29 —
openshift devspaces 3.30 —
openshift distributed tracing 3.9 —
openshift gitops 1.18 —
openshift pipelines 1.20 —
openshift pipelines 1.21 —
quay 3.10 —
quay 3.12 —
quay 3.14 —
quay 3.15 —
quay 3.16 —
quay 3.17 —
quay 3.18 —
quay 3.9 —
Red Hat Cryostat 4 on RHEL 9 all versions
Red Hat Custom Metric Autoscaler 2.19 all versions
Red Hat Logging for Red Hat OpenShift 6 all versions
Red Hat Logging for Red Hat OpenShift 6.2 all versions
Red Hat Logging Subsystem for Red Hat OpenShift 6.4 all versions
Red Hat multicluster engine for Kubernetes 2.1 all versions
Red Hat multicluster engine for Kubernetes 2.11 all versions
Red Hat multicluster engine for Kubernetes 2.6 all versions
Red Hat multicluster engine for Kubernetes 2.7 all versions
Red Hat multicluster engine for Kubernetes 2.8 all versions
Red Hat multicluster engine for Kubernetes 2.9 all versions
Red Hat Multicluster Global Hub 1.3.4 all versions
Red Hat Multicluster Global Hub 1.4.5 all versions
Red Hat Multicluster Global Hub 1.6.5 all versions
Red Hat OpenShift API for Data Protection 1.3 all versions
Red Hat OpenShift API for Data Protection 1.4 all versions
Red Hat OpenShift API for Data Protection 1.5 all versions
Red Hat Red Hat Advanced Cluster Management for Kubernetes 2.14 all versions
Red Hat Red Hat Advanced Cluster Security 4.8 all versions
Red Hat Red Hat Enterprise Linux 10 all versions
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support all versions
Red Hat Red Hat Enterprise Linux 8 all versions
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service all versions
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions all versions
Red Hat Red Hat Enterprise Linux 9 all versions
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions all versions
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support all versions
Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions all versions
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support all versions
Red Hat Red Hat OpenShift Container Platform 4.12 all versions
Red Hat Red Hat OpenShift Container Platform 4.13 all versions
Red Hat Red Hat OpenShift Container Platform 4.16 all versions
Red Hat Red Hat OpenShift Container Platform 4.18 all versions
Red Hat Red Hat OpenShift Container Platform 4.19 all versions
Red Hat Red Hat OpenShift Container Platform 4.20 all versions
Red Hat Red Hat OpenShift Container Platform 4.21 all versions
rhmt 1.8 —
service mesh 2.6 —
service mesh 3.1 —
service mesh 3.2 —
service mesh 3.3 —
trusted artifact signer 1.3 —

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:go-jose_project:go-jose:*:*:*:*:*:*:*:* ≥ 3.0.0 < 3.0.5
  • cpe:2.3:a:go-jose_project:go-jose:*:*:*:*:*:*:*:* ≥ 4.0.0 < 4.1.4