Skip to content
OpenAdvisories
Critical · 9.1 CVE-2026-53939 EUVD-2026-74299

OpenIDC/cjose uses all-zero Content Encryption Key for AES-CBC-HMAC JWE encryption

Published Sep 8, 2026 · Updated Sep 9, 2026 · Assigned by GitHub_M

Description

OpenIDC/cjose is a C library implementing the Javascript Object Signing and Encryption (JOSE). In versions 0.6.1 through 0.6.2.5, when cjose encrypts a JWE using an AES-CBC-HMAC content-encryption algorithm (`A128CBC-HS256`, `A192CBC-HS384`, or `A256CBC-HS512`) together with any key-management algorithm that generates a fresh content-encryption key (CEK), the CEK is all zero bytes instead of being randomly generated. The resulting JWE is therefore encrypted and authenticated under a fixed, publicly known key, so anyone who obtains the JWE can recover the plaintext and forge or modify the content. This is fixed in version 0.6.2.6 by `_cjose_jwe_set_cek_aes_cbc()` generating the CEK from `RAND_bytes`. A regression test asserts that the `encrypted_key` differs across two encryptions for each AES-CBC-HMAC variant. Until upgrading, for data encrypted with cjose, three options are available. Use an AES-GCM `enc` (`A128GCM` / `A192GCM` / `A256GCM`) instead of an AES-CBC-HMAC `enc`, use `alg=dir` with a caller-supplied CEK, or avoid using cjose for JWE encryption with the affected algorithm pair. These are mitigations for new ciphertexts only; data already encrypted under the zero key remains compromised and should be re-encrypted (and any secrets it contained rotated).

Affected products

VendorProductAffectedFixed
OpenIDC cjose >= 0.6.1, < 0.6.2.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cjose 0.6.2.7-1 —
Debian 13 cjose 0.6.2.3-1+deb13u1 —
Debian 12 cjose 0.6.2.1-1+deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 cjose No fix yet —
Ubuntu 26.04 LTS cjose No fix yet —
Ubuntu 24.04 LTS cjose No fix yet —
Ubuntu 22.04 LTS cjose No fix yet —
Ubuntu 20.04 LTS cjose No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS cjose No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 cjose +1 0.6.2.2-7.el10_2.2 RHSA-2026:98074, RHSA-2026:80605
RHEL 9 cjose +1 0.6.1-17.el9_8.2 RHSA-2026:92145
RHEL 8 cjose +1 0.6.1-6.module+el8.10.0+25174+9c399f63 RHSA-2026:92157
RHEL 8 mod_auth_openidc 2.4.9.4-9.module+el8.10.0+24880+4db9166e RHSA-2026:92157
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS cjose +1 0.6.2.2-7.el10_0.2 RHSA-2026:83224
RHEL 9.6 EUS cjose +1 0.6.1-17.el9_6.2 RHSA-2026:92154
RHEL 9.4 E4S cjose 0.6.1-16.el9_4.2 RHSA-2026:92155
RHEL 9.2 E4S cjose 0.6.1-13.el9_2.2 RHSA-2026:92156
RHEL 8.8 TUS cjose +1 0.6.1-3.module+el8.8.0+25209+e122577f.2 RHSA-2026:92158
RHEL 8.8 TUS mod_auth_openidc 2.4.9.4-1.module+el8.8.0+24885+7d8e9f68.3 RHSA-2026:92158
RHEL 8.8 E4S cjose +1 0.6.1-3.module+el8.8.0+25209+e122577f.2 RHSA-2026:92158
RHEL 8.8 E4S mod_auth_openidc 2.4.9.4-1.module+el8.8.0+24885+7d8e9f68.3 RHSA-2026:92158
RHEL 8.6 EUS Long Life cjose +1 0.6.1-3.module+el8.6.0+25217+11ffe348.2 RHSA-2026:92159
RHEL 8.6 EUS Long Life mod_auth_openidc 2.4.9.4-1.module+el8.6.0+24867+df0294a5.3 RHSA-2026:92159
RHEL 8.6 AUS cjose +1 0.6.1-3.module+el8.6.0+25217+11ffe348.2 RHSA-2026:92159
RHEL 8.6 AUS mod_auth_openidc 2.4.9.4-1.module+el8.6.0+24867+df0294a5.3 RHSA-2026:92159
RHEL 8.4 EUS Long Life cjose +1 0.6.1-3.module+el8.4.0+25223+40c6a3da.2 RHSA-2026:92160
RHEL 8.4 EUS Long Life mod_auth_openidc 2.4.9.4-1.module+el8.4.0+24868+593d10ef.3 RHSA-2026:92160
RHEL 8.4 AUS cjose +1 0.6.1-3.module+el8.4.0+25223+40c6a3da.2 RHSA-2026:92160
RHEL 8.4 AUS mod_auth_openidc 2.4.9.4-1.module+el8.4.0+24868+593d10ef.3 RHSA-2026:92160

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 cjose +1 0.6.2.2-7.el10_2.2 ALSA-2026:80605
AlmaLinux 9 cjose +1 0.6.1-17.el9_8.2 ALSA-2026:92145
AlmaLinux 8 cjose +1 0.6.1-6.module_el8.10.0+4330+15616d81 ALSA-2026:92157
AlmaLinux 8 mod_auth_openidc 2.4.9.4-9.module_el8.10.0+4297+63ae3533 ALSA-2026:92157

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 cjose 0.6.2.2-7.el10_2.2 RLSA-2026:98074, RLSA-2026:80605
Rocky Linux 10 cjose-devel 0.6.2.2-8.el10_3.1 RLSA-2026:98074
Rocky Linux 9 cjose 0.6.1-17.el9_8.2 RLSA-2026:92145
Rocky Linux 8 mod_auth_openidc 2.4.9.4-9.module+el8.10.0+40373+8a3f15d2 RLSA-2026:92157
ReleasePackageFixed inAdvisory
SLES 15 SP7 cjose 0.6.1-150600.18.3.1 SUSE-SU-2026:4251-1
SLES 15 SP6 cjose 0.6.1-150600.18.3.1 SUSE-SU-2026:4251-1
SLES 15 SP5 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLES 15 SP4 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLES 12 SP5 cjose 0.6.1-7.8.1 SUSE-SU-2026:4237-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 cjose 0.6.2.3-160000.3.1 SUSE-SU-2026:23910-1
SLES for SAP 15 SP6 cjose 0.6.1-150600.18.3.1 SUSE-SU-2026:4251-1
SLES for SAP 15 SP5 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLES for SAP 15 SP4 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLES 16.0 cjose 0.6.2.3-160000.3.1 SUSE-SU-2026:23910-1
SLE HPC 15 SP5 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLE HPC 15 SP4 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cjose 0.6.2.8-2.1 openSUSE-SU-2026:11784-1
openSUSE Leap 16.0 cjose 0.6.2.3-160000.3.1 openSUSE-SU-2026:21944-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 cjose +1 0.6.2.2-7.amzn2023 ALAS2023-2026-3130

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 cjose No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 cjose +1 0.6.2.2-7.el10_2.2 ELSA-2026-80605
Oracle Linux 9 cjose +1 0.6.1-17.el9_8.2 ELSA-2026-92145
Oracle Linux 8 cjose +1 0.6.1-6.module+el8.10.0+91088+2d069dc4 ELSA-2026-92157
Oracle Linux 8 mod_auth_openidc 2.4.9.4-9.module+el8.10.0+91088+2d069dc4 ELSA-2026-92157

Advisories 29

References