Skip to content
OpenAdvisories
High · 8.2 CVE-2026-53938 EUVD-2026-74298

OpenIDC/cjose has a heap buffer overflow in AES Key Wrap decryption (A128KW/A192KW/A256KW)

Published Sep 8, 2026 · Updated Sep 9, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
OpenIDC cjose < 0.6.2.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cjose 0.6.2.7-1 —
Debian 13 cjose 0.6.2.3-1+deb13u1 —
Debian 12 cjose 0.6.2.1-1+deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 cjose No fix yet —
Ubuntu 26.04 LTS cjose No fix yet —
Ubuntu 24.04 LTS cjose No fix yet —
Ubuntu 22.04 LTS cjose No fix yet —
Ubuntu 20.04 LTS cjose No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS cjose No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 cjose +1 0.6.2.2-7.el10_2.1 RHSA-2026:79122
RHEL 9 cjose +1 0.6.1-17.el9_8.1 RHSA-2026:90812
RHEL 8 cjose +1 0.6.1-5.module+el8.10.0+24880+4db9166e RHSA-2026:77369
RHEL 8 mod_auth_openidc 2.4.9.4-9.module+el8.10.0+24880+4db9166e RHSA-2026:77369
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS cjose +1 0.6.2.2-7.el10_0.1 RHSA-2026:73129
RHEL 9.6 EUS cjose +1 0.6.1-17.el9_6.1 RHSA-2026:73128
RHEL 9.4 E4S cjose 0.6.1-16.el9_4.1 RHSA-2026:73018
RHEL 9.2 E4S cjose 0.6.1-13.el9_2.1 RHSA-2026:73017
RHEL 8.8 TUS cjose +1 0.6.1-3.module+el8.8.0+24970+620d53ef.1 RHSA-2026:77370
RHEL 8.8 TUS mod_auth_openidc 2.4.9.4-1.module+el8.8.0+24885+7d8e9f68.3 RHSA-2026:77370
RHEL 8.8 E4S cjose +1 0.6.1-3.module+el8.8.0+24970+620d53ef.1 RHSA-2026:77370
RHEL 8.8 E4S mod_auth_openidc 2.4.9.4-1.module+el8.8.0+24885+7d8e9f68.3 RHSA-2026:77370
RHEL 8.6 EUS Long Life cjose +1 0.6.1-3.module+el8.6.0+24971+334c209b.1 RHSA-2026:77371
RHEL 8.6 EUS Long Life mod_auth_openidc 2.4.9.4-1.module+el8.6.0+24867+df0294a5.3 RHSA-2026:77371
RHEL 8.6 AUS cjose +1 0.6.1-3.module+el8.6.0+24971+334c209b.1 RHSA-2026:77371
RHEL 8.6 AUS mod_auth_openidc 2.4.9.4-1.module+el8.6.0+24867+df0294a5.3 RHSA-2026:77371
RHEL 8.4 EUS Long Life cjose +1 0.6.1-3.module+el8.4.0+24972+63eee48e.1 RHSA-2026:77372
RHEL 8.4 EUS Long Life mod_auth_openidc 2.4.9.4-1.module+el8.4.0+24868+593d10ef.3 RHSA-2026:77372
RHEL 8.4 AUS cjose +1 0.6.1-3.module+el8.4.0+24972+63eee48e.1 RHSA-2026:77372
RHEL 8.4 AUS mod_auth_openidc 2.4.9.4-1.module+el8.4.0+24868+593d10ef.3 RHSA-2026:77372

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 cjose +1 0.6.2.2-7.el10_2.1 ALSA-2026:79122
AlmaLinux 9 cjose +1 0.6.1-17.el9_8.1 ALSA-2026:90812
AlmaLinux 8 cjose +1 0.6.1-5.module_el8.10.0+4297+63ae3533 ALSA-2026:77369
AlmaLinux 8 mod_auth_openidc 2.4.9.4-9.module_el8.10.0+4297+63ae3533 ALSA-2026:77369

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 cjose 0.6.2.2-7.el10_2.1 RLSA-2026:79122
Rocky Linux 9 cjose 0.6.1-17.el9_8.1 RLSA-2026:90812
Rocky Linux 8 cjose 0.6.1-5.module+el8.10.0+40373+8a3f15d2 RLSA-2026:77369
Rocky Linux 8 mod_auth_openidc 2.4.9.4-9.module+el8.10.0+40373+8a3f15d2 RLSA-2026:77369
ReleasePackageFixed inAdvisory
SLES 15 SP7 cjose 0.6.1-150600.18.3.1 SUSE-SU-2026:4251-1
SLES 15 SP6 cjose 0.6.1-150600.18.3.1 SUSE-SU-2026:4251-1
SLES 15 SP5 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLES 15 SP4 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLES 12 SP5 cjose 0.6.1-7.8.1 SUSE-SU-2026:4237-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 cjose 0.6.2.3-160000.3.1 SUSE-SU-2026:23910-1
SLES for SAP 15 SP6 cjose 0.6.1-150600.18.3.1 SUSE-SU-2026:4251-1
SLES for SAP 15 SP5 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLES for SAP 15 SP4 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLES 16.0 cjose 0.6.2.3-160000.3.1 SUSE-SU-2026:23910-1
SLE HPC 15 SP5 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
SLE HPC 15 SP4 cjose 0.6.1-150100.4.9.1 SUSE-SU-2026:4253-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cjose 0.6.2.8-2.1 openSUSE-SU-2026:11784-1
openSUSE Leap 16.0 cjose 0.6.2.3-160000.3.1 openSUSE-SU-2026:21944-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 cjose +1 0.6.2.2-7.amzn2023 ALAS2023-2026-3130

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 cjose No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 cjose +1 0.6.2.2-7.el10_2.1 ELSA-2026-79122
Oracle Linux 9 cjose +1 0.6.1-17.el9_8.1 ELSA-2026-90812
Oracle Linux 8 cjose +1 0.6.1-5.module+el8.10.0+91060+e975931f ELSA-2026-77369
Oracle Linux 8 mod_auth_openidc 2.4.9.4-9.module+el8.10.0+91060+e975931f ELSA-2026-77369

Advisories 27

References