CVE-2023-37464CWE-327

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

High · published July 14, 2023

CVSS v3.1
8.6
EPSS
1%
Percentile
53.0
In the wild
Unconfirmed
What it is

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).

The record
Technical detail
CVSS v3.1
8.6 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00710 · 53.0th percentile
Weakness
CWE-327 · Use of a Broken or Risky Cryptographic Algorithm
Published
2023-07-14T20:25Z
EPSS history
Timeline
  • 14 JUL 20:25Z
    Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose
    cvelistv5