# CVE-2023-37464: Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-07-14T20:25:18.264Z
- Modified: 2026-06-17T06:08:16.283Z
- Weaknesses: CWE-327
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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).

(As written by CVE List.)

## Affected

- OpenIDC cjose: < 0.6.2.2
- cisco cjose: before 0.6.2.2

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/OpenIDC/cjose/security/advisories/GHSA-3rhg-3gf2-6xgj> (exploit, patch, vendor-advisory)
- <https://github.com/OpenIDC/cjose/commit/7325e9a5e71e2fc0e350487ecac7d84acdf0ed5e> (patch)
- <https://datatracker.ietf.org/doc/html/rfc7518#section-4.7> (third-party-advisory)
- <https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.2> (release-notes)
- <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/>

## Sources

- CVE List: [CVE-2023-37464](https://www.cve.org/CVERecord?id=CVE-2023-37464), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-37464](https://nvd.nist.gov/vuln/detail/CVE-2023-37464), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-37464 · Whole record: https://cve.day/CVE-2023-37464.json · Rebuilt by cve.day 2026-11-25T22:58:25.808Z
