cjose CVE-2026-53939
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain cjose-produced AES-CBC-HMAC JWE
-
DeliveryRecognize fixed all-zero CEK
-
ExploitDecrypt ciphertext offline with zero key
-
ExecutionRecover plaintext and forge/modify content
-
ImpactDeliver forged JWE to relying party
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Key management, no hard-coded keys
|
| Exploitation Conditions | Requires that the target generate JWEs with cjose 0.6.1-0.6.2.5 using an AES-CBC-HMAC enc value (A128CBC-HS256, A192CBC-HS384, or A256CBC-HS512) combined with a key-management alg that makes cjose generate a fresh CEK (e.g., AES key-wrap A128KW/A192KW/A256KW, RSA-OAEP, or ECDH-ES+KW). The attacker must then obtain the resulting JWE (interception, exposed storage/logs, or acting as a recipient). Exploitation does NOT apply to JWEs using AES-GCM enc, nor to alg=dir with a caller-supplied CEK, since those paths do not hit the zero-fill bug - so deployments not using the AES-CBC-HMAC-plus-key-wrap combination are unaffected. |
| Impact | The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:N, 9.1) is a reasonable characterization of impact: an attacker who can read an affected JWE recovers plaintext (C:H) and can also forge/alter authenticated content (I:H), with no availability effect (A:N). The practical caveat is that AV:N/PR:N describes the ability to act on an intercepted ciphertext rather than a remotely triggerable exploit against a listening service - real-world risk depends on the attacker gaining access to JWEs (interception, log/storage exposure, or a relying party accepting forged tokens). No EPSS score, KEV listing, or POC exploit was supplied; SSVC inputs are absent. Given no active-exploitation signal, this is a genuine cryptographic break that should be prioritized for any deployment using the affected enc/alg pair, but it is not evidence of mass exploitation. The single most important operational point: existing ciphertexts are permanently compromised, so remediation is not just patching but re-encryption and secret rotation. |
| Exploit ScenarioDerived | An application uses cjose 0.6.2.x to wrap session data or tokens as a JWE with alg=A256KW and enc=A256CBC-HS512. An attacker who captures such a JWE from network traffic, logs, or storage decrypts it offline using the known all-zero CEK, reads the sensitive plaintext, and can craft a modified JWE that still passes HMAC validation because the authentication key is also the zero constant. No POC was provided, but the added regression test demonstrates the deterministic-key behavior is trivial to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Plaintext recovery and content forgery in OpenIDC/cjose 0.6.1 through 0.6.2.5 occurs because the library zero-fills the content-encryption key (CEK) instead of randomizing it whenever a JWE is built with an AES-CBC-HMAC enc (A128CBC-HS256/A192CBC-HS384/A256CBC-HS512) and a key-management algorithm that generates a fresh CEK. Every affected ciphertext is therefore encrypted and authenticated under an all-zero, publicly known key, so anyone who obtains the JWE can decrypt it and forge or modify its contents. Fixed in 0.6.2.6; no public exploit identified at time of analysis, but the flaw is trivially demonstrable and confirmed by the vendor GitHub Security Advisory.
RemediationAI
Vendor-released patch: upgrade cjose to 0.6.2.6, which makes _cjose_jwe_set_cek_aes_cbc() derive the CEK from RAND_bytes and adds a regression test asserting encrypted_key varies across encryptions (advisory GHSA-f6wf-pqg3-6wqq; commit 2a6e5bd969fa20059fb00913fb9f57d77ea6a4d9). Until you can upgrade, mitigate new ciphertexts by switching enc to an AES-GCM variant (A128GCM/A192GCM/A256GCM), or by using alg=dir with a caller-supplied random CEK, or by not using cjose for JWE encryption with the affected AES-CBC-HMAC pairing - each avoids the zero-key path but requires changing the algorithm your relying parties/consumers accept, so coordinate with the decrypting side. Critically, these are prospective mitigations only: any data already encrypted under the zero key remains fully compromised and must be re-encrypted with a fixed build, and any secrets carried inside those JWEs should be rotated.
Affected ProductsAI
OpenIDC/cjose (the C JOSE library) versions 0.6.1 through 0.6.2.5 inclusive are affected when using AES-CBC-HMAC content encryption with a CEK-generating key-management algorithm. No CPE strings were provided in the input. The condition is fixed in 0.6.2.6 (release https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.6, commit https://github.com/OpenIDC/cjose/commit/2a6e5bd969fa20059fb00913fb9f57d77ea6a4d9). Downstream consumers that embed cjose - notably mod_auth_openidc - inherit the flaw when they emit JWEs with the affected algorithm pair. The authoritative advisory is GHSA-f6wf-pqg3-6wqq (https://github.com/OpenIDC/cjose/security/advisories/GHSA-f6wf-pqg3-6wqq).
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
cjose is a C library implementing JOSE (JSON Object Signing and Encryption), most notably used as the crypto backend for mod_auth_openidc (Apache OpenID Connect). The bug lives in _cjose_jwe_set_cek_aes_cbc() in src/jwe.c: an inverted 'random' flag passed to _cjose_jwe_malloc() caused the CEK buffer to be filled with 0x00 rather than RAND_bytes output whenever cjose itself had to generate the CEK (i.e., AES-CBC-HMAC enc combined with a wrapping alg such as A128KW/A192KW/A256KW/RSA-OAEP/ECDH-ES+KW). Because AES key wrap is deterministic, this also produced a byte-identical encrypted_key on every encryption with the same KEK - the property the added regression test now checks. This maps to CWE-321 (Use of a Hard-coded Cryptographic Key): the effective data key is a fixed, attacker-known constant, collapsing both the confidentiality and the HMAC integrity/authenticity of the AES-CBC-HMAC construction.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Anyone obtaining the JWE decrypts and forges it via the known zero key (C:H/I:H, PR:N/UI:N); no availability effect, no scope change; AV:N reflects handling network-transmitted ciphertext.
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
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).
Technical POC Analysis
The vulnerable function is cjosejwesetcekaescbc() in src/jwe.c.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
OpenIDC/cjose library versions 0.6.1-0.6.2.5 fail to properly randomize encryption keys for authentication tokens, allowing attackers to decrypt and forge user credentials and session data. This directly compromises the security of any application relying on this library for identity management, with potential for unauthorized account access and data breach across connected services.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Same weakness CWE-321 – Use of Hard-coded Cryptographic Key
View allSame technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Module for Server Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| openSUSE Leap 16.0 | Affected |
| SUSE Linux Enterprise High Performance Computing 12 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP6 | Affected |
| SUSE Linux Enterprise Server 12 SP5 | Affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE CaaS Platform 4.0 | Affected |
| SUSE Enterprise Storage 6 | Affected |
| SUSE Enterprise Storage 7 | Affected |
| SUSE Enterprise Storage 7.1 | Affected |
| SUSE Linux Enterprise High Performance Computing 12 SP4 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP1 | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP2 | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP2 | Affected |
| SUSE Linux Enterprise Real Time 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Affected |
| SUSE Linux Enterprise Server 12 SP4-ESPOS | Affected |
| SUSE Linux Enterprise Server 12 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP1 | Affected |
| SUSE Linux Enterprise Server 15 SP1-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP2 | Affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP3 | Affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Affected |
| SUSE Manager Proxy 4.0 | Affected |
| SUSE Manager Proxy 4.1 | Affected |
| SUSE Manager Proxy 4.2 | Affected |
| SUSE Manager Proxy 4.3 | Affected |
| SUSE Manager Proxy LTS 4.3 | Affected |
| SUSE Manager Retail Branch Server 4.0 | Affected |
| SUSE Manager Retail Branch Server 4.1 | Affected |
| SUSE Manager Retail Branch Server 4.2 | Affected |
| SUSE Manager Retail Branch Server 4.3 | Affected |
| SUSE Manager Retail Branch Server LTS 4.3 | Affected |
| SUSE Manager Server 4.0 | Affected |
| SUSE Manager Server 4.1 | Affected |
| SUSE Manager Server 4.2 | Affected |
| SUSE Manager Server 4.3 | Affected |
| SUSE Manager Server LTS 4.3 | Affected |
| SUSE OpenStack Cloud 9 | Affected |
| SUSE OpenStack Cloud Crowbar 9 | Affected |
| openSUSE Leap 15.3 | Affected |
| openSUSE Leap 15.4 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB