Skip to content
OpenAdvisories
High · 8.6 CVE-2023-37464 EUVD-2023-41362

Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose

Published Jul 14, 2023 · Updated Feb 13, 2025 · 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).

Affected products

VendorProductAffectedFixed
OpenIDC cjose < 0.6.2.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cjose 0.6.2.2-1 —
Debian 13 cjose 0.6.2.2-1 —
Debian 12 cjose 0.6.2.1-1+deb12u1 DSA-5472-1
Debian 11 cjose 0.6.1+dfsg1-1+deb11u1 DSA-5472-1
Debian 10 cjose 0.6.1+dfsg1-1+deb10u1 DLA-3515-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 cjose No fix yet —
Ubuntu 26.04 LTS cjose No fix yet —
Ubuntu 25.10 cjose No fix yet —
Ubuntu 24.04 LTS cjose No fix yet —
Ubuntu 22.04 LTS cjose 0.6.1+dfsg1-3ubuntu1.1 USN-6307-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS cjose 0.6.1+dfsg1-1ubuntu0.1 USN-6307-1
Ubuntu Pro 18.04 LTS cjose 0.6.0+dfsg1-1ubuntu0.1~esm1 USN-6307-1
ReleasePackageFixed inAdvisory
RHEL 9 cjose 0.6.1-13.el9_2 RHSA-2023:4411
RHEL 8 cjose +1 0.6.1-3.module+el8.8.0+19464+578f4546 RHSA-2023:4418
RHEL 8 mod_auth_openidc 2.4.9.4-1.module+el8.7.0+14797+4085fcb6 RHSA-2023:4418
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 EUS cjose 0.6.1-13.el9_0 RHSA-2023:4417
RHEL 8.6 EUS cjose +1 0.6.1-3.module+el8.6.0+19463+7d2e1f9c RHSA-2023:4408
RHEL 8.6 EUS mod_auth_openidc 2.3.7-11.module+el8.6.0+14082+b6f23e95 RHSA-2023:4408
RHEL 8.4 TUS cjose +1 0.6.1-3.module+el8.4.0+19462+14bde120 RHSA-2023:4409
RHEL 8.4 TUS mod_auth_openidc 2.3.7-8.module+el8.4.0+9707+f2438af7 RHSA-2023:4409
RHEL 8.4 E4S cjose +1 0.6.1-3.module+el8.4.0+19462+14bde120 RHSA-2023:4409
RHEL 8.4 E4S mod_auth_openidc 2.3.7-8.module+el8.4.0+9707+f2438af7 RHSA-2023:4409
RHEL 8.4 AUS cjose +1 0.6.1-3.module+el8.4.0+19462+14bde120 RHSA-2023:4409
RHEL 8.4 AUS mod_auth_openidc 2.3.7-8.module+el8.4.0+9707+f2438af7 RHSA-2023:4409
RHEL 8.2 TUS cjose +1 0.6.1-3.module+el8.2.0+19461+3a40b6ee RHSA-2023:4410
RHEL 8.2 TUS mod_auth_openidc 2.3.7-4.module+el8.2.0+6919+ac02cfd2.3 RHSA-2023:4410
RHEL 8.2 E4S cjose +1 0.6.1-3.module+el8.2.0+19461+3a40b6ee RHSA-2023:4410
RHEL 8.2 E4S mod_auth_openidc 2.3.7-4.module+el8.2.0+6919+ac02cfd2.3 RHSA-2023:4410
RHEL 8.2 AUS cjose +1 0.6.1-3.module+el8.2.0+19461+3a40b6ee RHSA-2023:4410
RHEL 8.2 AUS mod_auth_openidc 2.3.7-4.module+el8.2.0+6919+ac02cfd2.3 RHSA-2023:4410
RHEL 8.1 E4S cjose +1 0.6.1-3.module+el8.1.0+19504+b2d26fa1 RHSA-2023:4429
RHEL 8.1 E4S mod_auth_openidc 2.3.7-4.module+el8.1.0+19504+b2d26fa1.3 RHSA-2023:4429

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 cjose 0.6.1-13.el9_2.alma ALSA-2023:4411
AlmaLinux 8 cjose +1 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

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 cjose 0.6.1-3.module+el8.8.0+1406+4a7f5371 RLSA-2023:4418
Rocky Linux 8 mod_auth_openidc 2.4.9.4-1.module+el8.7.0+1061+55d14382 RLSA-2023:4418
ReleasePackageFixed inAdvisory
SLES 15 SP5 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLES 15 SP4 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLES 15 SP3 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLES 15 SP2 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLES 15 SP1 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
Show 17 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 cjose 0.6.1-7.5.1 SUSE-SU-2023:3030-1
SLES 12 SP4 cjose 0.6.1-7.5.1 SUSE-SU-2023:3030-1
SLES for SAP 15 SP3 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLES for SAP 15 SP2 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLES for SAP 15 SP1 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLES for SAP 12 SP5 cjose 0.6.1-7.5.1 SUSE-SU-2023:3030-1
SLES for SAP 12 SP4 cjose 0.6.1-7.5.1 SUSE-SU-2023:3030-1
SLE Real Time 15 SP3 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLE HPC 15 SP3 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLE HPC 15 SP2 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SLE HPC 15 SP1 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SUSE OpenStack Cloud Crowbar 9 cjose 0.6.1-7.5.1 SUSE-SU-2023:3030-1
SUSE OpenStack Cloud 9 cjose 0.6.1-7.5.1 SUSE-SU-2023:3030-1
SUSE Manager Server 4.2 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SUSE Manager Proxy 4.2 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SUSE Enterprise Storage 7.1 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
SUSE Enterprise Storage 7 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
openSUSE Leap 15.4 cjose 0.6.1-150100.4.6.1 SUSE-SU-2023:3230-1
ReleasePackageFixed inAdvisory
Alpine v3.24 cjose 0.6.2.2-r0 —
Alpine v3.23 cjose 0.6.2.2-r0 —
Alpine v3.22 cjose 0.6.2.2-r0 —
Alpine v3.21 cjose 0.6.2.2-r0 —
Alpine v3.20 cjose 0.6.2.2-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 cjose 0.6.2.2-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 cjose 0.6.2.2-7 —
Azure Linux 2 (CBL-Mariner) cjose No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 cjose 0.6.1-13.el9_2 ELSA-2023-4411
Oracle Linux 8 cjose +1 0.6.1-3.module+el8.8.0+21137+b6cedbc2 ELSA-2023-4418
Oracle Linux 8 mod_auth_openidc 2.4.9.4-1.module+el8.7.0+20769+fca4d9d0 ELSA-2023-4418

Advisories 18

References