{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-37464",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-07-06T13:01:36.997Z",
        "datePublished": "2023-07-14T20:25:18.264Z",
        "dateUpdated": "2024-08-02T17:16:30.233Z"
    },
    "containers": {
        "cna": {
            "title": "Incorrect Authentication Tag length usage in AES GCM decryption in OpenIDC/cjose",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-327",
                            "lang": "en",
                            "description": "CWE-327: Use of a Broken or Risky Cryptographic Algorithm",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 8.6,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/OpenIDC/cjose/security/advisories/GHSA-3rhg-3gf2-6xgj",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/OpenIDC/cjose/security/advisories/GHSA-3rhg-3gf2-6xgj"
                },
                {
                    "name": "https://github.com/OpenIDC/cjose/commit/7325e9a5e71e2fc0e350487ecac7d84acdf0ed5e",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/OpenIDC/cjose/commit/7325e9a5e71e2fc0e350487ecac7d84acdf0ed5e"
                },
                {
                    "name": "https://datatracker.ietf.org/doc/html/rfc7518#section-4.7",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://datatracker.ietf.org/doc/html/rfc7518#section-4.7"
                },
                {
                    "name": "https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.2",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.2"
                },
                {
                    "url": "https://lists.debian.org/debian-lts-announce/2023/08/msg00002.html"
                },
                {
                    "url": "https://www.debian.org/security/2023/dsa-5472"
                },
                {
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DFWAPMYYVBO2U65HPYDTBEKNSXG4TP5C/"
                },
                {
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTZHOVGY7AHGNMEY245HK4Q36AMA53AL/"
                },
                {
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LCQJXKDPCWCXB2V4JMQ3UWYJ4UIBPUW6/"
                }
            ],
            "affected": [
                {
                    "vendor": "OpenIDC",
                    "product": "cjose",
                    "versions": [
                        {
                            "version": "< 0.6.2.2",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-07-14T20:25:18.264Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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)."
                }
            ],
            "source": {
                "advisory": "GHSA-3rhg-3gf2-6xgj",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T17:16:30.233Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/OpenIDC/cjose/security/advisories/GHSA-3rhg-3gf2-6xgj",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/OpenIDC/cjose/security/advisories/GHSA-3rhg-3gf2-6xgj"
                    },
                    {
                        "name": "https://github.com/OpenIDC/cjose/commit/7325e9a5e71e2fc0e350487ecac7d84acdf0ed5e",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/OpenIDC/cjose/commit/7325e9a5e71e2fc0e350487ecac7d84acdf0ed5e"
                    },
                    {
                        "name": "https://datatracker.ietf.org/doc/html/rfc7518#section-4.7",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://datatracker.ietf.org/doc/html/rfc7518#section-4.7"
                    },
                    {
                        "name": "https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.2",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/OpenIDC/cjose/releases/tag/v0.6.2.2"
                    },
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2023/08/msg00002.html",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://www.debian.org/security/2023/dsa-5472",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DFWAPMYYVBO2U65HPYDTBEKNSXG4TP5C/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTZHOVGY7AHGNMEY245HK4Q36AMA53AL/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LCQJXKDPCWCXB2V4JMQ3UWYJ4UIBPUW6/",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}