DescriptionOpenIDC/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 >= Users unable to upgrade should avoid using AES GCM encryption and replace it with another encryption algorithm (e.g. AES CBC).
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3515-1, DSA-5472-1
Debian Bugs1041423

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cjose (PTS)buster, bullseye0.6.1+dfsg1-1vulnerable
buster (security)0.6.1+dfsg1-1+deb10u1fixed
bullseye (security)0.6.1+dfsg1-1+deb11u1fixed
bookworm (security)
sid, trixie0.6.2.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs

Notes (v0.6.2.2)

Search for package or bug name: Reporting problems