Out-of-Bounds Write in OpenIDC cjose C Library for JWE Decryption
CVE-2026-53938
8.2HIGH
What is CVE-2026-53938?
The OpenIDC cjose C library, which implements JavaScript Object Signing and Encryption (JOSE), is susceptible to an Out-of-Bounds Write vulnerability. Prior to version 0.6.2.5, the library's decryption process for the AES Key Wrap key-management algorithms does not properly validate the length of user-supplied encrypted_key. This oversight allows remote, unauthenticated attackers to craft malicious JWE payloads that, upon processing, can lead to heap corruption resulting in potential denial of service or more severe memory corruption issues. It is strongly recommended to upgrade to version 0.6.2.5 or, as an alternative, to reject AES Key Wrap algorithms for untrusted JWEs at the application layer.
Affected Version(s)
cjose < 0.6.2.5
