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). 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
Created cjose tracking bugs for this issue: Affects: fedora-all [bug 2223330]
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.6 Extended Update Support Via RHSA-2023:4408 https://access.redhat.com/errata/RHSA-2023:4408
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.2 Advanced Update Support Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions Red Hat Enterprise Linux 8.2 Telecommunications Update Service Via RHSA-2023:4410 https://access.redhat.com/errata/RHSA-2023:4410
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions Red Hat Enterprise Linux 8.4 Telecommunications Update Service Via RHSA-2023:4409 https://access.redhat.com/errata/RHSA-2023:4409
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2023:4411 https://access.redhat.com/errata/RHSA-2023:4411
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.0 Extended Update Support Via RHSA-2023:4417 https://access.redhat.com/errata/RHSA-2023:4417
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2023:4418 https://access.redhat.com/errata/RHSA-2023:4418
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions Via RHSA-2023:4429 https://access.redhat.com/errata/RHSA-2023:4429