CVE-2026-53939 OpenIDC/cjose uses all-zero Content Encryption Key for AES-CBC-HMAC JWE encryption
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/cjose(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/cjose(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/OpenIDC/cjose/security/advisories/GHSA-f6wf-pqg3-6wqq exploit
- https://github.com/OpenIDC/cjose/commit/2a6e5bd969fa20059fb00913fb9f57d77ea6a4d9
- https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.6
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:80605 patch vendor-advisory
- RHSA-2026:98074 patch vendor-advisory
- RHSA-2026:83224 patch vendor-advisory
- RHSA-2026:92157 patch vendor-advisory
- RHSA-2026:92160 patch vendor-advisory
- RHSA-2026:92159 patch vendor-advisory
- RHSA-2026:92158 patch vendor-advisory
- RHSA-2026:92145 patch vendor-advisory
- RHSA-2026:92156 patch vendor-advisory
- RHSA-2026:92155 patch vendor-advisory
- RHSA-2026:92154 patch vendor-advisory
- Red Hat Bugzilla 2530243 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-53939 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-74299 third-party-advisory