Lack of data validation In cjose
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).
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
debian 11 | 0.6.1+dfsg1-1+deb11u1 | ||
debian 12 | 0.6.2.1-1+deb12u1 | ||
debian 13 | 0.6.2.2-1 | ||
debian 14 | 0.6.2.2-1 | ||
rpm rhel8.6 | 0:2.3.7-11.module+el8.6.0+14082+b6f23e95 | ||
rpm rhel8 | 0:2.4.9.4-1.module+el8.7.0+14797+4085fcb6 | ||
rpm rhel9 | 0:0.6.1-13.el9_2 | ||
rpm rhel9.0 | 0:0.6.1-13.el9_0 |
Aliases