Bug 2223295 (CVE-2023-37464) - CVE-2023-37464 cjose: AES GCM decryption uses the Tag length from the actual Authentication Tag provided in the JWE
Summary: CVE-2023-37464 cjose: AES GCM decryption uses the Tag length from the actual ...
Keywords:
Status: NEW
Alias: CVE-2023-37464
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2223307 2223308 2223330 2223487 2223488 2223489 2223490 2223491 2223492 2223493
Blocks: 2223315
TreeView+ depends on / blocked
 
Reported: 2023-07-17 09:57 UTC by Vipul Nair
Modified: 2023-08-02 07:56 UTC (History)
1 user (show)

Fixed In Version: cjose 0.6.2.2
Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in cjose. The 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 JSON Web Encryption (JWE). A fixed length of 16 octets must be applied. This flaw allows an attacker to provide a truncated Authentication Tag and modify the JWE.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:4408 0 None None None 2023-08-01 13:33:28 UTC
Red Hat Product Errata RHSA-2023:4409 0 None None None 2023-08-01 13:42:13 UTC
Red Hat Product Errata RHSA-2023:4410 0 None None None 2023-08-01 13:42:03 UTC
Red Hat Product Errata RHSA-2023:4411 0 None None None 2023-08-01 13:49:59 UTC
Red Hat Product Errata RHSA-2023:4417 0 None None None 2023-08-01 14:14:50 UTC
Red Hat Product Errata RHSA-2023:4418 0 None None None 2023-08-01 14:21:00 UTC
Red Hat Product Errata RHSA-2023:4429 0 None None None 2023-08-02 07:56:38 UTC

Description Vipul Nair 2023-07-17 09:57:33 UTC
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

Comment 2 TEJ RATHI 2023-07-17 11:46:55 UTC
Created cjose tracking bugs for this issue:

Affects: fedora-all [bug 2223330]

Comment 5 errata-xmlrpc 2023-08-01 13:33:27 UTC
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

Comment 6 errata-xmlrpc 2023-08-01 13:42:02 UTC
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

Comment 7 errata-xmlrpc 2023-08-01 13:42:12 UTC
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

Comment 8 errata-xmlrpc 2023-08-01 13:49:57 UTC
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

Comment 9 errata-xmlrpc 2023-08-01 14:14:49 UTC
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

Comment 10 errata-xmlrpc 2023-08-01 14:20:59 UTC
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

Comment 11 errata-xmlrpc 2023-08-02 07:56:37 UTC
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


Note You need to log in before you can comment on or make changes to this bug.