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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | cjose | 0.6.2.2-r0 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | cjose | 0.6.2.2-7 | — |
| Azure Linux 2 (CBL-Mariner) | cjose | No fix yet | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- ALSA-2023:4411 Important: cjose security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2023:4418 Important: mod_auth_openidc:2.3 security update AlmaLinux Security Advisories · Oct 29, 2026
- USN-6307-1 cjose vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-5472-1 cjose - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3515-1 cjose - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2023:4418 Important: mod_auth_openidc:2.3 security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2023:3230-1 Security update for cjose SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2023:4429 Red Hat Security Advisory: mod_auth_openidc:2.3 security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2023:4417 Red Hat Security Advisory: cjose security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2023:4418 Red Hat Security Advisory: mod_auth_openidc:2.3 security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2023:4410 Red Hat Security Advisory: mod_auth_openidc:2.3 security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2023:4411 Red Hat Security Advisory: cjose security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2023:4408 Red Hat Security Advisory: mod_auth_openidc:2.3 security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2023:4409 Red Hat Security Advisory: mod_auth_openidc:2.3 security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- SUSE-SU-2023:3030-1 Security update for cjose SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2023-1940 Red Hat Enterprise Linux (mod_auth_openidc): Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Nov 21, 2023
- ELSA-2023-4411 Important: cjose security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Aug 2, 2023
- ELSA-2023-4418 Important: mod_auth_openidc:2.3 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Aug 2, 2023
References
- https://github.com/OpenIDC/cjose/security/advisories/GHSA-3rhg-3gf2-6xgj
- https://github.com/OpenIDC/cjose/commit/7325e9a5e71e2fc0e350487ecac7d84acdf0ed5e
- https://datatracker.ietf.org/doc/html/rfc7518#section-4.7
- 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/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/