CVE-2026-53938: OpenIDC/cjose has a heap buffer overflow in AES Key Wrap decryption (A128KW/A192KW/A256KW)
Vulnerability summary
CVE-2026-53938 is a high (CVSS 8.2) Heap-based Buffer Overflow vulnerability in openidc cjose. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 15.6% of scored vulnerabilities.
Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 7Timeline
- 08-09-2026PublishedVulnerability first disclosed.
- 09-09-2026Last modifiedVulnerability information updated.
Description
OpenIDC/cjose is a C library implementing the Javascript Object Signing and Encryption (JOSE). Prior to version 0.6.2.5, cjose's JWE decryption path for the AES Key Wrap key-management algorithms (`alg` = `A128KW`, `A192KW`, `A256KW`) does not validate the length of the attacker-supplied `encrypted_key` (JWE Encrypted Key) before unwrapping it into a fixed-size, heap-allocated Content Encryption Key (CEK) buffer. A remote, unauthenticated attacker who can submit a crafted JWE to an application that decrypts it with an AES-KW symmetric key can trigger an out-of-bounds heap write, corrupting the heap. This leads at minimum to a crash (denial of service) and, depending on the heap layout and allocator, may be leverageable for further memory-corruption impact. `cjose_jwe_import()` / `cjose_jwe_decrypt()` are pre-authentication entry points: they parse and process fully attacker-controlled input. Upgrade to cjose 0.6.2.5 to receive a patch. If upgrading is not immediately possible, reject the AES Key Wrap algorithms (`A128KW`/`A192KW`/`A256KW`) for untrusted JWEs at the application layer.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · Red hatEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- OSV · UbuntuEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- OSV · DebianEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- NVDNIST8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
16%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.24% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat7 products
- cjose< 0:0.6.1-13.el9_2.1 | < 0:0.6.1-16.el9_4.1 | < 0:0.6.1-17.el9_6.1 | < 0:0.6.2.2-7.el10_0.1 | < 0:0.6.1-3.module+el8.8.0+24970+620d53ef.1 | < 0:0.6.1-3.module+el8.6.0+24971+334c209b.1 | < 0:0.6.1-3.module+el8.4.0+24972+63eee48e.1 | < 0:0.6.2.2-7.el10_2.1 | < 0:0.6.1-17.el9_8.1
- cjose-debuginfo< 0:0.6.1-13.el9_2.1 | < 0:0.6.1-16.el9_4.1 | < 0:0.6.1-17.el9_6.1 | < 0:0.6.2.2-7.el10_0.1 | < 0:0.6.1-3.module+el8.8.0+24970+620d53ef.1 | < 0:0.6.1-3.module+el8.6.0+24971+334c209b.1 | < 0:0.6.1-3.module+el8.4.0+24972+63eee48e.1 | < 0:0.6.2.2-7.el10_2.1 | < 0:0.6.1-17.el9_8.1
- cjose-debugsource< 0:0.6.1-13.el9_2.1 | < 0:0.6.1-16.el9_4.1 | < 0:0.6.1-17.el9_6.1 | < 0:0.6.2.2-7.el10_0.1 | < 0:0.6.1-3.module+el8.8.0+24970+620d53ef.1 | < 0:0.6.1-3.module+el8.6.0+24971+334c209b.1 | < 0:0.6.1-3.module+el8.4.0+24972+63eee48e.1 | < 0:0.6.2.2-7.el10_2.1 | < 0:0.6.1-17.el9_8.1
- cjose-devel< 0:0.6.1-17.el9_6.1 | < 0:0.6.2.2-7.el10_0.1 | < 0:0.6.1-3.module+el8.8.0+24970+620d53ef.1 | < 0:0.6.1-3.module+el8.6.0+24971+334c209b.1 | < 0:0.6.1-3.module+el8.4.0+24972+63eee48e.1 | < 0:0.6.2.2-7.el10_2.1 | < 0:0.6.1-17.el9_8.1
- mod_auth_openidc< 0:2.4.9.4-1.module+el8.8.0+24885+7d8e9f68.3 | < 0:2.4.9.4-1.module+el8.6.0+24867+df0294a5.3 | < 0:2.4.9.4-1.module+el8.4.0+24868+593d10ef.3
Debian1 product
- cjoseAll versions (No fix recorded) | < 0.6.2.1-1+deb12u2 | < 0.6.2.3-1+deb13u1 | < 0.6.2.7-1
Openidc1 product
- cjose< 0.6.2.5
Ubuntu1 product
- cjoseAll versions (No fix recorded) | < 0.6.0+dfsg1-1ubuntu0.1~esm2 | < 0.6.1+dfsg1-1ubuntu0.1+esm1 | < 0.6.1+dfsg1-3ubuntu1.1+esm1 | < 0.6.2.2-1ubuntu0.1~esm1 | < 0.6.2.4-1ubuntu0.1~esm1
4 vendors · 10 products