Skip to content

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

HighCVSS 8.2 EPSS 0.24%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

21 packages: 9 fixed, 11 with no fix yet.

PackageAffectedFixed inStatus
redhat/mod_auth_openidc:2.3-8040020260929135523.522a0ee4(Red Hat rhel_aus 8.4) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8040020260929135523.522a0ee4(Red Hat rhel_eus_long_life 8.4) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8060020260929134527.ad008a3a(Red Hat rhel_aus 8.6) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8060020260929134527.ad008a3a(Red Hat rhel_eus_long_life 8.6) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8080020260929133202.63b34585(Red Hat rhel_e4s 8.8) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8080020260929133202.63b34585(Red Hat rhel_tus 8.8) All versions No fix listed No fix yet
redhat/mod_auth_openidc:2.3-8100020260914112224.489197e6(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
ubuntu/cjose(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/cjose(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/cjose(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/cjose(Ubuntu 26.10) All versions No fix listed No fix yet
debian/cjose(Debian 12) < 0.6.2.1-1+deb12u2; = 0.6.2.1-1; = 0.6.2.1-1+deb12u1 0.6.2.1-1+deb12u2 Fixed
debian/cjose(Debian 13) < 0.6.2.3-1+deb13u1; = 0.6.2.3-1 0.6.2.3-1+deb13u1 Fixed
debian/cjose(Debian 14) < 0.6.2.7-1; = 0.6.2.3-1; = 0.6.2.4-1 0.6.2.7-1 Fixed
redhat/cjose(Red Hat enterprise_linux 10.2) < 0.6.2.2-7.el10_2.1 0.6.2.2-7.el10_2.1 Fixed
redhat/cjose(Red Hat enterprise_linux 9) < 0.6.1-17.el9_8.1 0.6.1-17.el9_8.1 Fixed
redhat/cjose(Red Hat enterprise_linux_eus 10.0) < 0.6.2.2-7.el10_0.1 0.6.2.2-7.el10_0.1 Fixed
redhat/cjose(Red Hat rhel_e4s 9.2) < 0.6.1-13.el9_2.1 0.6.1-13.el9_2.1 Fixed
redhat/cjose(Red Hat rhel_e4s 9.4) < 0.6.1-16.el9_4.1 0.6.1-16.el9_4.1 Fixed
redhat/cjose(Red Hat rhel_eus 9.6) < 0.6.1-17.el9_6.1 0.6.1-17.el9_6.1 Fixed
OpenIDC cjose = < 0.6.2.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
OpenIDC cjose = < 0.6.2.5 No fix listed
redhat/cjose(Red Hat:enterprise_linux:10.2) < 0.6.2.2-7.el10_2.1 0.6.2.2-7.el10_2.1
redhat/cjose(Red Hat:enterprise_linux_eus:10.0) < 0.6.2.2-7.el10_0.1 0.6.2.2-7.el10_0.1
redhat/mod_auth_openidc:2.3-8100020260914112224.489197e6(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/mod_auth_openidc:2.3-8040020260929135523.522a0ee4(Red Hat:rhel_aus:8.4) All versions No fix listed
redhat/mod_auth_openidc:2.3-8040020260929135523.522a0ee4(Red Hat:rhel_eus_long_life:8.4) All versions No fix listed
redhat/mod_auth_openidc:2.3-8060020260929134527.ad008a3a(Red Hat:rhel_aus:8.6) All versions No fix listed
redhat/mod_auth_openidc:2.3-8060020260929134527.ad008a3a(Red Hat:rhel_eus_long_life:8.6) All versions No fix listed
redhat/mod_auth_openidc:2.3-8080020260929133202.63b34585(Red Hat:rhel_tus:8.8) All versions No fix listed
redhat/mod_auth_openidc:2.3-8080020260929133202.63b34585(Red Hat:rhel_e4s:8.8) All versions No fix listed
redhat/cjose(Red Hat:enterprise_linux:9) < 0.6.1-17.el9_8.1 0.6.1-17.el9_8.1
redhat/cjose(Red Hat:rhel_e4s:9.2) < 0.6.1-13.el9_2.1 0.6.1-13.el9_2.1
redhat/cjose(Red Hat:rhel_e4s:9.4) < 0.6.1-16.el9_4.1 0.6.1-16.el9_4.1
redhat/cjose(Red Hat:rhel_eus:9.6) < 0.6.1-17.el9_6.1 0.6.1-17.el9_6.1
debian/cjose(Debian:12) < 0.6.2.1-1+deb12u2 0.6.2.1-1+deb12u2
debian/cjose(Debian:12) = 0.6.2.1-1 No fix listed
debian/cjose(Debian:12) = 0.6.2.1-1+deb12u1 No fix listed
debian/cjose(Debian:13) < 0.6.2.3-1+deb13u1 0.6.2.3-1+deb13u1
debian/cjose(Debian:13) = 0.6.2.3-1 No fix listed
debian/cjose(Debian:14) < 0.6.2.7-1 0.6.2.7-1
debian/cjose(Debian:14) = 0.6.2.3-1 No fix listed
debian/cjose(Debian:14) = 0.6.2.4-1 No fix listed
ubuntu/cjose(Ubuntu:22.04) All versions No fix listed
ubuntu/cjose(Ubuntu:24.04) All versions No fix listed
ubuntu/cjose(Ubuntu:26.04) All versions No fix listed
Show 1 more
ProductAffected versionsFixed in
ubuntu/cjose(Ubuntu:26.10) All versions No fix listed

References