CVE-2023-37464

Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose

Published Jul 14, 2023 CVSS 3.1 · 8.6 High EPSS < 1% KEV · Not listed
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3515-1 cjose security update
Debian DSA Debian DSA DSA-5472-1 cjose security update
EUVD EUVD EUVD-2023-41362 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).
Ubuntu USN Ubuntu USN USN-6307-1 JOSE for C/C++ vulnerability
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 13, 2025, 5:01 PM
Reserved
Jul 6, 2023, 1:01 PM
Status
Modified
Published
Jul 14, 2023, 9:15 PM
Modified
Jun 17, 2026, 6:08 AM
Severity
Important
Public date
Jul 14, 2023, 12:00 AM