Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose
Summary
Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose
Original description
The description as published by the source.
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).
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2023-37464 cjose Fixed in: 0.6.1+dfsg1-1+deb11u1
- Ubuntu UBUNTU-CVE-2023-37464 cjose Fixed in: 0.6.0+dfsg1-1ubuntu0.1~esm1
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- advisory debian.org
- patch github.com
- web datatracker.ietf.org
- web github.com
- web lists.debian.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org