Skip to content

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

CriticalCVSS 9.1 EPSS 0.25%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total
Technology
UbuntuDebianRed Hat

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).

Upgrade path

22 packages: 10 fixed, 11 with no fix yet.

PackageAffectedFixed inStatus
redhat/mod_auth_openidc:2.3-8040020261027124842.522a0ee4(Red Hat rhel_aus 8.4) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8040020261027124842.522a0ee4(Red Hat rhel_eus_long_life 8.4) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8060020261027124711.ad008a3a(Red Hat rhel_aus 8.6) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8060020261027124711.ad008a3a(Red Hat rhel_eus_long_life 8.6) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8080020261027124055.63b34585(Red Hat rhel_e4s 8.8) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8080020261027124055.63b34585(Red Hat rhel_tus 8.8) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8100020261023093202.489197e6(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
ubuntu/cjose(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/cjose(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/cjose(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/cjose(Ubuntu 26.10) All versions No fix listed No fix yet
debian/cjose(Debian 12) < 0.6.2.1-1+deb12u2; = 0.6.2.1-1; = 0.6.2.1-1+deb12u1 0.6.2.1-1+deb12u2 Fixed
debian/cjose(Debian 13) < 0.6.2.3-1+deb13u1; = 0.6.2.3-1 0.6.2.3-1+deb13u1 Fixed
debian/cjose(Debian 14) < 0.6.2.7-1; = 0.6.2.3-1; = 0.6.2.4-1 0.6.2.7-1 Fixed
redhat/cjose(Red Hat enterprise_linux 10.2) < 0.6.2.2-7.el10_2.2 0.6.2.2-7.el10_2.2 Fixed
redhat/cjose(Red Hat enterprise_linux 10.3) < 0.6.2.2-8.el10_3.1 0.6.2.2-8.el10_3.1 Fixed
redhat/cjose(Red Hat enterprise_linux 9) < 0.6.1-17.el9_8.2 0.6.1-17.el9_8.2 Fixed
redhat/cjose(Red Hat enterprise_linux_eus 10.0) < 0.6.2.2-7.el10_0.2 0.6.2.2-7.el10_0.2 Fixed
redhat/cjose(Red Hat rhel_e4s 9.2) < 0.6.1-13.el9_2.2 0.6.1-13.el9_2.2 Fixed
redhat/cjose(Red Hat rhel_e4s 9.4) < 0.6.1-16.el9_4.2 0.6.1-16.el9_4.2 Fixed
redhat/cjose(Red Hat rhel_eus 9.6) < 0.6.1-17.el9_6.2 0.6.1-17.el9_6.2 Fixed
OpenIDC cjose = >= 0.6.1, < 0.6.2.6 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
OpenIDC cjose = >= 0.6.1, < 0.6.2.6 No fix listed
redhat/cjose(Red Hat:enterprise_linux:10.2) < 0.6.2.2-7.el10_2.2 0.6.2.2-7.el10_2.2
redhat/cjose(Red Hat:enterprise_linux:10.3) < 0.6.2.2-8.el10_3.1 0.6.2.2-8.el10_3.1
redhat/cjose(Red Hat:enterprise_linux_eus:10.0) < 0.6.2.2-7.el10_0.2 0.6.2.2-7.el10_0.2
redhat/mod_auth_openidc:2.3-8100020261023093202.489197e6(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/mod_auth_openidc:2.3-8040020261027124842.522a0ee4(Red Hat:rhel_aus:8.4) All versions No fix listed
redhat/mod_auth_openidc:2.3-8040020261027124842.522a0ee4(Red Hat:rhel_eus_long_life:8.4) All versions No fix listed
redhat/mod_auth_openidc:2.3-8060020261027124711.ad008a3a(Red Hat:rhel_aus:8.6) All versions No fix listed
redhat/mod_auth_openidc:2.3-8060020261027124711.ad008a3a(Red Hat:rhel_eus_long_life:8.6) All versions No fix listed
redhat/mod_auth_openidc:2.3-8080020261027124055.63b34585(Red Hat:rhel_tus:8.8) All versions No fix listed
redhat/mod_auth_openidc:2.3-8080020261027124055.63b34585(Red Hat:rhel_e4s:8.8) All versions No fix listed
redhat/cjose(Red Hat:enterprise_linux:9) < 0.6.1-17.el9_8.2 0.6.1-17.el9_8.2
redhat/cjose(Red Hat:rhel_e4s:9.2) < 0.6.1-13.el9_2.2 0.6.1-13.el9_2.2
redhat/cjose(Red Hat:rhel_e4s:9.4) < 0.6.1-16.el9_4.2 0.6.1-16.el9_4.2
redhat/cjose(Red Hat:rhel_eus:9.6) < 0.6.1-17.el9_6.2 0.6.1-17.el9_6.2
debian/cjose(Debian:12) < 0.6.2.1-1+deb12u2 0.6.2.1-1+deb12u2
debian/cjose(Debian:12) = 0.6.2.1-1 No fix listed
debian/cjose(Debian:12) = 0.6.2.1-1+deb12u1 No fix listed
debian/cjose(Debian:13) < 0.6.2.3-1+deb13u1 0.6.2.3-1+deb13u1
debian/cjose(Debian:13) = 0.6.2.3-1 No fix listed
debian/cjose(Debian:14) < 0.6.2.7-1 0.6.2.7-1
debian/cjose(Debian:14) = 0.6.2.3-1 No fix listed
debian/cjose(Debian:14) = 0.6.2.4-1 No fix listed
ubuntu/cjose(Ubuntu:22.04) All versions No fix listed
ubuntu/cjose(Ubuntu:24.04) All versions No fix listed
Show 2 more
ProductAffected versionsFixed in
ubuntu/cjose(Ubuntu:26.04) All versions No fix listed
ubuntu/cjose(Ubuntu:26.10) All versions No fix listed

References