CVE-2023-37464 Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianNetwork AppliancesCisco
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).
Upgrade path
18 packages: 13 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/cjose(Ubuntu 24.04) | = 0.6.2.2-1; = 0.6.2.2-1build1; = 0.6.2.2-1build2; = 0.6.2.2-1build3 +1 more | No fix listed | No fix yet |
| ubuntu/cjose(Ubuntu 25.10) | = 0.6.2.3-1; All versions | No fix listed | No fix yet |
| ubuntu/cjose(Ubuntu 26.04) | = 0.6.2.3-1; = 0.6.2.4-1; All versions | No fix listed | No fix yet |
| ubuntu/cjose(Ubuntu 26.10) | = 0.6.2.4-1; = 0.6.2.8-1; All versions | No fix listed | No fix yet |
| alpine/cjose(Alpine v3.19) | < 0.6.2.2-r0 | 0.6.2.2-r0 | Fixed |
| alpine/cjose(Alpine v3.20) | < 0.6.2.2-r0 | 0.6.2.2-r0 | Fixed |
| alpine/cjose(Alpine v3.21) | < 0.6.2.2-r0 | 0.6.2.2-r0 | Fixed |
| alpine/cjose(Alpine v3.22) | < 0.6.2.2-r0 | 0.6.2.2-r0 | Fixed |
| alpine/cjose(Alpine v3.23) | < 0.6.2.2-r0 | 0.6.2.2-r0 | Fixed |
| alpine/cjose(Alpine v3.24) | < 0.6.2.2-r0 | 0.6.2.2-r0 | Fixed |
| cisco cjose | < 0.6.2.2 | 0.6.2.2 | Fixed |
| debian/cjose(Debian 12) | < 0.6.2.1-1+deb12u1; = 0.6.2.1-1 | 0.6.2.1-1+deb12u1 | Fixed |
| debian/cjose(Debian 13) | < 0.6.2.2-1 | 0.6.2.2-1 | Fixed |
| debian/cjose(Debian 14) | < 0.6.2.2-1 | 0.6.2.2-1 | Fixed |
| ubuntu/cjose(Ubuntu 20.04) | < 0.6.1+dfsg1-1ubuntu0.1; = 0.6.1+dfsg1-1 | 0.6.1+dfsg1-1ubuntu0.1 | Fixed |
| ubuntu/cjose(Ubuntu 22.04) | < 0.6.1+dfsg1-3ubuntu1.1; = 0.6.1+dfsg1-1; = 0.6.1+dfsg1-3; = 0.6.1+dfsg1-3ubuntu1 | 0.6.1+dfsg1-3ubuntu1.1 | Fixed |
| ubuntu/cjose(Ubuntu Pro 18.04) | < 0.6.0+dfsg1-1ubuntu0.1~esm1; = 0.4.1-3ubuntu1; = 0.5.1+dfsg1-1; = 0.5.1+dfsg1-2 +2 more | 0.6.0+dfsg1-1ubuntu0.1~esm1 | Fixed |
| OpenIDC cjose | = < 0.6.2.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cjose(Debian:12) | < 0.6.2.1-1+deb12u1 | 0.6.2.1-1+deb12u1 |
| debian/cjose(Debian:12) | = 0.6.2.1-1 | No fix listed |
| debian/cjose(Debian:13) | < 0.6.2.2-1 | 0.6.2.2-1 |
| debian/cjose(Debian:14) | < 0.6.2.2-1 | 0.6.2.2-1 |
| OpenIDC cjose | = < 0.6.2.2 | No fix listed |
| cisco cjose | < 0.6.2.2 | 0.6.2.2 |
| ubuntu/cjose(Ubuntu:22.04) | < 0.6.1+dfsg1-3ubuntu1.1 | 0.6.1+dfsg1-3ubuntu1.1 |
| alpine/cjose(Alpine:v3.19) | < 0.6.2.2-r0 | 0.6.2.2-r0 |
| alpine/cjose(Alpine:v3.20) | < 0.6.2.2-r0 | 0.6.2.2-r0 |
| alpine/cjose(Alpine:v3.21) | < 0.6.2.2-r0 | 0.6.2.2-r0 |
| alpine/cjose(Alpine:v3.22) | < 0.6.2.2-r0 | 0.6.2.2-r0 |
| alpine/cjose(Alpine:v3.23) | < 0.6.2.2-r0 | 0.6.2.2-r0 |
| alpine/cjose(Alpine:v3.24) | < 0.6.2.2-r0 | 0.6.2.2-r0 |
| ubuntu/cjose(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/cjose(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/cjose(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/cjose(Ubuntu:Pro:18.04) | < 0.6.0+dfsg1-1ubuntu0.1~esm1 | 0.6.0+dfsg1-1ubuntu0.1~esm1 |
| ubuntu/cjose(Ubuntu:Pro:18.04) | = 0.4.1-3ubuntu1 | No fix listed |
| ubuntu/cjose(Ubuntu:Pro:18.04) | = 0.5.1+dfsg1-1 | No fix listed |
| ubuntu/cjose(Ubuntu:Pro:18.04) | = 0.5.1+dfsg1-2 | No fix listed |
| ubuntu/cjose(Ubuntu:Pro:18.04) | = 0.5.1+dfsg1-2build1 | No fix listed |
| ubuntu/cjose(Ubuntu:Pro:18.04) | = 0.6.0+dfsg1-1 | No fix listed |
| ubuntu/cjose(Ubuntu:20.04) | < 0.6.1+dfsg1-1ubuntu0.1 | 0.6.1+dfsg1-1ubuntu0.1 |
| ubuntu/cjose(Ubuntu:20.04) | = 0.6.1+dfsg1-1 | No fix listed |
| ubuntu/cjose(Ubuntu:22.04) | = 0.6.1+dfsg1-1 | No fix listed |
Show 12 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/cjose(Ubuntu:22.04) | = 0.6.1+dfsg1-3 | No fix listed |
| ubuntu/cjose(Ubuntu:22.04) | = 0.6.1+dfsg1-3ubuntu1 | No fix listed |
| ubuntu/cjose(Ubuntu:24.04) | = 0.6.2.2-1 | No fix listed |
| ubuntu/cjose(Ubuntu:24.04) | = 0.6.2.2-1build1 | No fix listed |
| ubuntu/cjose(Ubuntu:24.04) | = 0.6.2.2-1build2 | No fix listed |
| ubuntu/cjose(Ubuntu:24.04) | = 0.6.2.2-1build3 | No fix listed |
| ubuntu/cjose(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/cjose(Ubuntu:25.10) | = 0.6.2.3-1 | No fix listed |
| ubuntu/cjose(Ubuntu:26.10) | = 0.6.2.4-1 | No fix listed |
| ubuntu/cjose(Ubuntu:26.10) | = 0.6.2.8-1 | No fix listed |
| ubuntu/cjose(Ubuntu:26.04) | = 0.6.2.3-1 | No fix listed |
| ubuntu/cjose(Ubuntu:26.04) | = 0.6.2.4-1 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- Debian Security Tracker CVE-2023-37464 vendor-advisory
- https://github.com/OpenIDC/cjose/security/advisories/GHSA-3rhg-3gf2-6xgj exploit issue-tracking patch vendor-advisory
- https://github.com/OpenIDC/cjose/commit/7325e9a5e71e2fc0e350487ecac7d84acdf0ed5e issue-tracking patch
- https://datatracker.ietf.org/doc/html/rfc7518#section-4.7 issue-tracking third-party-advisory
- https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.2 issue-tracking release-notes
- lists.debian.org
- www.debian.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6307-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking