CVE-2023-37464

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-37464
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-37464.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-37464
Aliases
  • GHSA-3rhg-3gf2-6xgj
Downstream
Related
Published
2023-07-14T20:25:18Z
Modified
2025-10-22T18:38:37.899557Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N CVSS Calculator
Summary
Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose
Details

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

Database specific
{
    "cwe_ids": [
        "CWE-327"
    ]
}
References

Affected packages

Git / github.com/openidc/cjose

Affected ranges

Type
GIT
Repo
https://github.com/openidc/cjose
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.2
0.2.0
0.3.0
0.4.0
0.4.1
0.5.0
0.5.1
0.6.0
0.6.1

Other

latest

v0.*

v0.6.2
v0.6.2.1