Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-327.
Summary
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).
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA cjose (OpenIDC) Fixed in 0.6.2.2
Red Hat 7 advisories
- RHSA-2023:4429 Released 2023-08-02 · Red Hat rating Importantmod_auth_openidc:2.3 security update
- Red Hat Enterprise Linux AppStream E4S (v. 8.1) cjose-0.6.1-3.module+el8.1.0+19504+b2d26fa1.ppc64le::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.1.0+19504+b2d26fa1.src::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.1.0+19504+b2d26fa1.x86_64::mod_auth_openidc:2.3 +5
- RHSA-2023:4418 Released 2023-08-01 · Red Hat rating Importantmod_auth_openidc:2.3 security update
- Red Hat Enterprise Linux AppStream (v. 8) cjose-0.6.1-3.module+el8.8.0+19464+578f4546.aarch64::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.8.0+19464+578f4546.ppc64le::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.8.0+19464+578f4546.s390x::mod_auth_openidc:2.3 +11
- RHSA-2023:4417 Released 2023-08-01 · Red Hat rating Importantcjose security update
- Red Hat Enterprise Linux AppStream EUS (v.9.0) cjose-0.6.1-13.el9_0
Show 4 more Red Hat advisories
- RHSA-2023:4411 Released 2023-08-01 · Red Hat rating Importantcjose security update
- Red Hat Enterprise Linux AppStream (v. 9) cjose-0.6.1-13.el9_2
- RHSA-2023:4409 Released 2023-08-01 · Red Hat rating Importantmod_auth_openidc:2.3 security update
- Red Hat Enterprise Linux AppStream AUS (v.8.4) cjose-0.6.1-3.module+el8.4.0+19462+14bde120.src::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.4.0+19462+14bde120.x86_64::mod_auth_openidc:2.3, cjose-devel-0.6.1-3.module+el8.4.0+19462+14bde120.x86_64::mod_auth_openidc:2.3 +2
- Red Hat Enterprise Linux AppStream E4S (v.8.4) cjose-0.6.1-3.module+el8.4.0+19462+14bde120.aarch64::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.4.0+19462+14bde120.ppc64le::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.4.0+19462+14bde120.s390x::mod_auth_openidc:2.3 +11
- Red Hat Enterprise Linux AppStream TUS (v.8.4) cjose-0.6.1-3.module+el8.4.0+19462+14bde120.src::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.4.0+19462+14bde120.x86_64::mod_auth_openidc:2.3, cjose-devel-0.6.1-3.module+el8.4.0+19462+14bde120.x86_64::mod_auth_openidc:2.3 +2
- RHSA-2023:4410 Released 2023-08-01 · Red Hat rating Importantmod_auth_openidc:2.3 security update
- Red Hat Enterprise Linux AppStream AUS (v. 8.2) cjose-0.6.1-3.module+el8.2.0+19461+3a40b6ee.src::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.2.0+19461+3a40b6ee.x86_64::mod_auth_openidc:2.3, cjose-devel-0.6.1-3.module+el8.2.0+19461+3a40b6ee.x86_64::mod_auth_openidc:2.3 +2
- Red Hat Enterprise Linux AppStream E4S (v. 8.2) cjose-0.6.1-3.module+el8.2.0+19461+3a40b6ee.ppc64le::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.2.0+19461+3a40b6ee.src::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.2.0+19461+3a40b6ee.x86_64::mod_auth_openidc:2.3 +5
- Red Hat Enterprise Linux AppStream TUS (v. 8.2) cjose-0.6.1-3.module+el8.2.0+19461+3a40b6ee.src::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.2.0+19461+3a40b6ee.x86_64::mod_auth_openidc:2.3, cjose-devel-0.6.1-3.module+el8.2.0+19461+3a40b6ee.x86_64::mod_auth_openidc:2.3 +2
- RHSA-2023:4408 Released 2023-08-01 · Red Hat rating Importantmod_auth_openidc:2.3 security update
- Red Hat Enterprise Linux AppStream EUS (v.8.6) cjose-0.6.1-3.module+el8.6.0+19463+7d2e1f9c.aarch64::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.6.0+19463+7d2e1f9c.ppc64le::mod_auth_openidc:2.3, cjose-0.6.1-3.module+el8.6.0+19463+7d2e1f9c.s390x::mod_auth_openidc:2.3 +11
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2023:4418 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2023:4411 |
| Red Hat Enterprise Linux AppStream AUS (v. 8.2) | Fixed | RHSA-2023:4410 |
| Red Hat Enterprise Linux AppStream AUS (v.8.4) | Fixed | RHSA-2023:4409 |
| Red Hat Enterprise Linux AppStream E4S (v. 8.1) | Fixed | RHSA-2023:4429 |
| Red Hat Enterprise Linux AppStream E4S (v. 8.2) | Fixed | RHSA-2023:4410 |
| Red Hat Enterprise Linux AppStream E4S (v.8.4) | Fixed | RHSA-2023:4409 |
| Red Hat Enterprise Linux AppStream EUS (v.8.6) | Fixed | RHSA-2023:4408 |
| Red Hat Enterprise Linux AppStream EUS (v.9.0) | Fixed | RHSA-2023:4417 |
| Red Hat Enterprise Linux AppStream TUS (v. 8.2) | Fixed | RHSA-2023:4410 |
| Red Hat Enterprise Linux AppStream TUS (v.8.4) | Fixed | RHSA-2023:4409 |
Timeline
- 2026-10-02 Threatist record created from CVE-2023-37464
References
Other 6
- https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.2
- 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/[email protected]/message/DFWAPMYYVBO2U65HPYDTBEKNSXG4TP5C/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PTZHOVGY7AHGNMEY245HK4Q36AMA53AL/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/LCQJXKDPCWCXB2V4JMQ3UWYJ4UIBPUW6/
More OpenIDC vulnerabilities
- TI-2026-38908 OpenIDC/cjose uses all-zero Content Encryption Key for AES-CBC-HMAC JWE encryption CVSS 3.1CRITICAL 9.1
- TI-2024-16331 Denial of service when manipulating mod_auth_openidc_session_chunks cookie in mod_auth_openidc CVSS 3.1HIGH 7.5
- TI-2017-04220 The "OpenID Connect Relying Party and OAuth 2.0 Resource Server" (aka mod_auth_openidc)… CVSS 3.0HIGH 8.6
- TI-2017-03971 The "OpenID Connect Relying Party and OAuth 2.0 Resource Server" (aka mod_auth_openidc)… CVSS 3.0HIGH 8.6
- TI-2025-22673 mod_auth_openidc allows OIDCProviderAuthRequestMethod POSTs to leak protected data CVSS 4.0HIGH 8.2
- TI-2023-13144 mod_auth_openidc core dump when OIDCStripCookies is set and an empty Cookie header is supplied CVSS 3.1HIGH 7.5
Sources
- CVE-2023-37464 · CVE Program
- CVE-2023-37464 · NVD
- FIRST EPSS
- CVE-2023-37464 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences