# CVE-2026-53938: OpenIDC/cjose has a heap buffer overflow in AES Key Wrap decryption (A128KW/A192KW/A256KW)

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0.6.2.5 (CNA); fix release not confirmed
- Status: published
- Published: 2026-09-08 · Modified: 2026-09-09
- Aliases: RHSA-2026:73017, RHSA-2026:73018, RHSA-2026:73128, RHSA-2026:73129, RHSA-2026:77370, RHSA-2026:77371, RHSA-2026:77372, RHSA-2026:79122, UBUNTU-CVE-2026-53938, DEBIAN-CVE-2026-53938, RHSA-2026:90812
- Record: https://cvemate.com/vulnerability/CVE-2026-53938 · JSON: https://cvemate.com/vulnerability/CVE-2026-53938/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- EPSS: 0.236%, percentile 15.612%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian cjose (Debian): All versions (No fix recorded) \| \< 0.6.2.1-1+deb12u2 \| \< 0.6.2.3-1+deb13u1 \| \< 0.6.2.7-1
- ubuntu cjose (Ubuntu): All 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
- openidc cjose: \< 0.6.2.5
- redhat cjose (Red Hat): \< 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
- redhat cjose-debuginfo (Red Hat): \< 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
- redhat cjose-debugsource (Red Hat): \< 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
- redhat cjose-devel (Red Hat): \< 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
- redhat mod\_auth\_openidc (Red Hat): \< 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
- redhat mod\_auth\_openidc-debuginfo (Red Hat): \< 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
- redhat mod\_auth\_openidc-debugsource (Red Hat): \< 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

## References (first 20 of 28)

- <https://github.com/OpenIDC/cjose/security/advisories/GHSA-75r7-f5cv-g3wj>
- <https://github.com/OpenIDC/cjose/commit/8c51d245273583a658f24ef7b08ba22f848a34a5>
- <https://access.redhat.com/errata/RHSA-2026:73017>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2530240>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_73017.json>
- <https://access.redhat.com/security/cve/CVE-2026-53938>
- <https://www.cve.org/CVERecord?id=CVE-2026-53938>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-53938>
- <https://access.redhat.com/errata/RHSA-2026:73018>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_73018.json>
- <https://access.redhat.com/errata/RHSA-2026:73128>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_73128.json>
- <https://access.redhat.com/errata/RHSA-2026:73129>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_73129.json>
- <https://access.redhat.com/errata/RHSA-2026:77370>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_77370.json>
- <https://access.redhat.com/errata/RHSA-2026:77371>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_77371.json>
- <https://access.redhat.com/errata/RHSA-2026:77372>

---

Data as of 2026-12-05T11:43:15.018Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
