High severity · published Jul 14, 2023
CVE-2023-37464
Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose
7.5
CVSS
0.7%
EPSS
No
On KEV
Description
OpenIDC/cjose is a C library implementing the Javascript Object Signing and Encryption (JOSE). The AES GCM decryption routine incorrectly uses the Tag length from the actual Authentication Tag provided in the JWE. The spec says that a fixed length of 16 octets must be applied. Therefore this bug allows an attacker to provide a truncated Authentication Tag and to modify the JWE accordingly. Users should upgrade to a version >= 0.6.2.2. Users unable to upgrade should avoid using AES GCM encryption and replace it with another encryption algorithm (e.g. AES CBC).
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 53% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CJ
cjose · OpenIDC
< 0.6.2.2 · source: vendor, NVD, CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-37464
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-37464
Third Party Advisory
https://datatracker.ietf.org/doc/html/rfc7518#section-4.7
Patch
https://github.com/OpenIDC/cjose/commit/7325e9a5e71e2fc0e350487ecac7d84acdf0ed5e
Release Notes
https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.2
Exploit
https://github.com/OpenIDC/cjose/security/advisories/GHSA-3rhg-3gf2-6xgj
lists.debian.org
https://lists.debian.org/debian-lts-announce/2023/08/msg00002.html
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DFWAPMYYVBO2U65HPYDTBEKNSXG4TP5C/
More from cjose
9.1
CVE-2026-53939
OpenIDC/cjose uses all-zero Content Encryption Key for AES-CBC-HMAC JWE encryption
8.2
CVE-2026-53938
OpenIDC/cjose has a heap buffer overflow in AES Key Wrap decryption (A128KW/A192KW/A256KW)
