Vulnerability · Published Jul 14, 2023 · Assigned by GitHub_M
CVE-2023-37464Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose
High 8.6
In plain English
A high-severity broken cryptography in cjose from OpenIDC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | cjose | 0.6.1-3.module_el8.8.0+3591+c9939da8 | ALSA-2023:4418 |
| AlmaLinux:9 | cjose | 0.6.1-13.el9_2.alma | ALSA-2023:4411 |
| AlmaLinux:8 | cjose-devel | 0.6.1-3.module_el8.8.0+3591+c9939da8 | ALSA-2023:4418 |
| AlmaLinux:8 | mod_auth_openidc | 2.4.9.4-1.module_el8.7.0+3305+9a59f0c3 | ALSA-2023:4418 |
| Alpine:v3.20 | cjose | 0.6.2.2-r0 | ALPINE-CVE-2023-37464 |
| Alpine:v3.21 | cjose | 0.6.2.2-r0 | ALPINE-CVE-2023-37464 |
| Alpine:v3.22 | cjose | 0.6.2.2-r0 | ALPINE-CVE-2023-37464 |
| Alpine:v3.23 | cjose | 0.6.2.2-r0 | ALPINE-CVE-2023-37464 |
| Alpine:v3.24 | cjose | 0.6.2.2-r0 | ALPINE-CVE-2023-37464 |
| Debian:12 | cjose | 0.6.2.1-1+deb12u1 | DSA-5472-1 |
| Debian:12 | cjose | 0.6.2.1-1+deb12u1 | DEBIAN-CVE-2023-37464 |
| Debian:13 | cjose | 0.6.2.2-1 | DEBIAN-CVE-2023-37464 |
| Debian:14 | cjose | 0.6.2.2-1 | DEBIAN-CVE-2023-37464 |
| Rocky Linux:8 | cjose | 0:0.6.1-3.module+el8.8.0+1406+4a7f5371 | RLSA-2023:4418 |
| Rocky Linux:8 | mod_auth_openidc | 0:2.4.9.4-1.module+el8.7.0+1061+55d14382 | RLSA-2023:4418 |
| Ubuntu:22.04:LTS | cjose | 0.6.1+dfsg1-3ubuntu1.1 | USN-6307-1 |
| Ubuntu:22.04:LTS | cjose | 0.6.1+dfsg1-3ubuntu1.1 | UBUNTU-CVE-2023-37464 |
| Ubuntu:24.04:LTS | cjose | no fix listed | UBUNTU-CVE-2023-37464 |
| Ubuntu:25.10 | cjose | no fix listed | UBUNTU-CVE-2023-37464 |
| Ubuntu:26.04:LTS | cjose | no fix listed | UBUNTU-CVE-2023-37464 |
| Ubuntu:26.10 | cjose | no fix listed | UBUNTU-CVE-2023-37464 |
Affected products (as reported)
Weakness: CWE-327 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
References
- https://github.com/OpenIDC/cjose/security/advisories/GHSA-3rhg-3gf2-6xgj x_refsource_CONFIRM
- https://github.com/OpenIDC/cjose/commit/7325e9a5e71e2fc0e350487ecac7d84acdf0ed5e x_refsource_MISC
- https://datatracker.ietf.org/doc/html/rfc7518#section-4.7 x_refsource_MISC
- https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.2 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2023/08/msg00002.html
- https://www.debian.org/security/2023/dsa-5472
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DFWAPMYYVBO2U65HPYDTBEKNSXG4TP5C/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTZHOVGY7AHGNMEY245HK4Q36AMA53AL/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LCQJXKDPCWCXB2V4JMQ3UWYJ4UIBPUW6/