cve.bz

CVE-2026-53939 openidc cjose: Use of Hard-coded Cryptographic Key

9.1 criticalEPSS 0.2%

Critical (9.1) in openidc cjose. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2026-09-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-321 Use of Hard-coded Cryptographic Key
CWE-330 Use of Insufficiently Random Values
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-53939 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-53939?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-53939?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-53939 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenIDC cjose>= 0.6.1, < 0.6.2.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12cjose0.6.2.1-1+deb12u2DEBIAN-CVE-2026-53939 DLA-4887-1
Debian13cjose0.6.2.3-1+deb13u1DEBIAN-CVE-2026-53939 DSA-6499-1
Debian14cjose0.6.2.7-1DEBIAN-CVE-2026-53939
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morecjoseno fix listedUBUNTU-CVE-2026-53939
Red Hatenterprise_linux:8::appstreamcjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.1-6.module+el8.10.0+25174+9c399f63RHSA-2026:92157
Red Hatenterprise_linux:8::appstreammod_auth_openidc, mod_auth_openidc-debuginfo, mod_auth_openidc-debugsource0:2.4.9.4-9.module+el8.10.0+24880+4db9166eRHSA-2026:92157
Red Hatenterprise_linux:9::appstreamcjose, cjose-debuginfo, cjose-debugsource0:0.6.1-17.el9_8.2RHSA-2026:92145
Red Hatenterprise_linux:9::crbcjose-devel, cjose-debuginfo, cjose-debugsource0:0.6.1-17.el9_8.2RHSA-2026:92145
Red Hatenterprise_linux:10.2cjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.2.2-7.el10_2.2RHSA-2026:80605
Red Hatenterprise_linux:10.3cjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.2.2-8.el10_3.1RHSA-2026:98074
Red Hatenterprise_linux_eus:10.0cjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.2.2-7.el10_0.2RHSA-2026:83224
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamcjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.1-3.module+el8.4.0+25223+40c6a3da.2RHSA-2026:92160
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreammod_auth_openidc, mod_auth_openidc-debuginfo, mod_auth_openidc-debugsource0:2.4.9.4-1.module+el8.4.0+24868+593d10ef.3RHSA-2026:92160
Red Hatrhel_aus:8.6::appstream, rhel_eus_long_life:8.6::appstreamcjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.1-3.module+el8.6.0+25217+11ffe348.2RHSA-2026:92159
Red Hatrhel_aus:8.6::appstream, rhel_eus_long_life:8.6::appstreammod_auth_openidc, mod_auth_openidc-debuginfo, mod_auth_openidc-debugsource0:2.4.9.4-1.module+el8.6.0+24867+df0294a5.3RHSA-2026:92159
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamcjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.1-3.module+el8.8.0+25209+e122577f.2RHSA-2026:92158
5 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morecjose0.6.1-150100.4.9.1SUSE-SU-2026:4253-1
SUSELinux Enterprise Module for Server Applications 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6cjose0.6.1-150600.18.3.1SUSE-SU-2026:4251-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5cjose0.6.1-7.8.1SUSE-SU-2026:4237-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0cjose0.6.2.3-160000.3.1SUSE-SU-2026:23910-1
openSUSELeap 16.0cjose0.6.2.3-160000.3.1openSUSE-SU-2026:21944-1
openSUSETumbleweedcjose0.6.2.8-2.1openSUSE-SU-2026:11784-1
AlmaLinux8cjose, cjose-devel0.6.1-6.module_el8.10.0+4330+15616d81ALSA-2026:92157
AlmaLinux8mod_auth_openidc2.4.9.4-9.module_el8.10.0+4297+63ae3533ALSA-2026:92157
AlmaLinux9cjose, cjose-devel0.6.1-17.el9_8.2ALSA-2026:92145
AlmaLinux10cjose, cjose-devel0.6.2.2-7.el10_2.2ALSA-2026:80605
AlmaLinux10cjose, cjose-devel0.6.2.2-8.el10_3.1ALSA-2026:98074
Rocky Linux8mod_auth_openidc0:2.4.9.4-9.module+el8.10.0+40373+8a3f15d2RLSA-2026:92157
Rocky Linux9cjose0:0.6.1-17.el9_8.2RLSA-2026:92145
Rocky Linux10cjose0:0.6.2.2-7.el10_2.2RLSA-2026:80605
Rocky Linux10cjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.2.2-8.el10_3.1RLSA-2026:98074
Azure Linux3cjoseno fix listedAZL-101096

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

A CRITICAL severity vulnerability was found in cjose, a C library implementing the Javascript Object Signing and Encryption (JOSE) standards. The cjose package is affected in Red Hat Enterprise Linux 10, Red Hat In-Vehicle OS 2, and Fedora as shipped by Red Hat. When cjose encrypts a JSON Web Encryption (JWE) object 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 initialized to all zero bytes instead of being securely randomly generated. The resulting JWE is therefore encrypted and authenticated under a fixed, publicly known key. An attacker who obtains the encrypted JWE can decrypt it to recover sensitive plaintext and can alter or forge the encrypted content, causing information disclosure and loss of data integrity; availability is not affected. Red Hat and upstream both rate this flaw CRITICAL with a CVSS 3.1 score of 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N), so there is no difference from the upstream severity. Fixes for the affected Red Hat product streams are being pursued through delegated resolution.

Red Hat's mitigation

Until the fixed package is installed, applications using cjose for JWE encryption can avoid the vulnerable code path by switching the content-encryption algorithm from AES-CBC-HMAC (A128CBC-HS256, A192CBC-HS384, A256CBC-HS512) to an AES-GCM enc (A128GCM, A192GCM, or A256GCM), by using alg=dir with a caller-supplied content-encryption key, or by not using cjose for JWE encryption with the affected algorithm pair. These options protect newly created ciphertexts only; data already encrypted under the all-zero key must be considered compromised, should be re-encrypted, and any secrets it contained should be rotated. Upgrading to a version containing the upstream fix (0.6.2.6 or later) resolves the issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10cjose-0:0.6.2.2-7.el10_2.2Fixed 2026-10-12RHSA-2026:80605
Red Hat Enterprise Linux 10.0 Extended Update Supportcjose-0:0.6.2.2-7.el10_0.2Fixed 2026-10-15RHSA-2026:83224
Red Hat Enterprise Linux 8mod_auth_openidc:2.3-8100020261023093202.489197e6Fixed 2026-10-29RHSA-2026:92157
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportmod_auth_openidc:2.3-8040020261027124842.522a0ee4Fixed 2026-10-29RHSA-2026:92160
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onmod_auth_openidc:2.3-8040020261027124842.522a0ee4Fixed 2026-10-29RHSA-2026:92160
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportmod_auth_openidc:2.3-8060020261027124711.ad008a3aFixed 2026-10-29RHSA-2026:92159
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onmod_auth_openidc:2.3-8060020261027124711.ad008a3aFixed 2026-10-29RHSA-2026:92159
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicemod_auth_openidc:2.3-8080020261027124055.63b34585Fixed 2026-10-29RHSA-2026:92158
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsmod_auth_openidc:2.3-8080020261027124055.63b34585Fixed 2026-10-29RHSA-2026:92158
Red Hat Enterprise Linux 9cjose-0:0.6.1-17.el9_8.2Fixed 2026-10-29RHSA-2026:92145
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionscjose-0:0.6.1-13.el9_2.2Fixed 2026-10-29RHSA-2026:92156
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionscjose-0:0.6.1-16.el9_4.2Fixed 2026-10-29RHSA-2026:92155
Red Hat Enterprise Linux 9.6 Extended Update Supportcjose-0:0.6.1-17.el9_6.2Fixed 2026-10-29RHSA-2026:92154

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-53939.

Attack patterns (CAPEC)

  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-112 Brute Force Severity: High
  • CAPEC-485 Signature Spoofing by Key Recreation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON