Skip to content
Heist/ feed
Back to feed
HighFix available

cjose — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-37464

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).

Products
cjose
Affected versions
0.6.2.1-1
Fixed versions
0.6.2.1-1+deb12u1, 0.6.2.2-1
CVEs
CVE-2023-37464
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:55 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-37464

core-osv · Original source

Published 14 Jul 2023, 21:15 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).

osv:DEBIAN-CVE-2023-37464

cjose

Fixed versions: 0.6.2.1-1+deb12u1

cjose

Fixed versions: 0.6.2.2-1

cjose

Fixed versions: 0.6.2.2-1

Complete source record
{
  "id": "c7c1d5e3620700548d18140ea70e67334824b85ed7490e8dafea2313fd00ae1f",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-37464",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-37464",
    "summary": "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).",
    "evidence": "osv:DEBIAN-CVE-2023-37464",
    "products": [
      {
        "name": {
          "value": "cjose",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.6.2.1-1+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.6.2.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cjose",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.6.2.2-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "cjose",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.6.2.2-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2023-37464",
      "aliases": [
        "DEBIAN-CVE-2023-37464"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.6.2.1-1+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "cjose",
            "purl": "pkg:deb/debian/cjose?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "0.6.2.1-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-37464.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.6.2.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "cjose",
            "purl": "pkg:deb/debian/cjose?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-37464.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.6.2.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "cjose",
            "purl": "pkg:deb/debian/cjose?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-37464.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:02:29.786725203Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-37464"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-37464"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-37464",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 456080,
  "published_at": "2023-07-14T21:15:08.903+00:00"
}