cjose — security advisory
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.4.1-3ubuntu1, 0.5.1+dfsg1-1, 0.5.1+dfsg1-2, 0.5.1+dfsg1-2build1, 0.6.0+dfsg1-1, 0.6.1+dfsg1-1, 0.6.1+dfsg1-3, 0.6.1+dfsg1-3ubuntu1, 0.6.2.2-1, 0.6.2.2-1build1, 0.6.2.2-1build2, 0.6.2.2-1build3, 0.6.2.3-1, 0.6.2.4-1, 0.6.2.8-1
- Fixed versions
- 0.6.0+dfsg1-1ubuntu0.1~esm1, 0.6.1+dfsg1-1ubuntu0.1, 0.6.1+dfsg1-3ubuntu1.1
- CVEs
- CVE-2023-37464
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:04 UTC · Revision 1
Source evidence
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:UBUNTU-CVE-2023-37464
cjose
Fixed versions: 0.6.0+dfsg1-1ubuntu0.1~esm1
cjose
Fixed versions: 0.6.1+dfsg1-1ubuntu0.1
cjose
Fixed versions: 0.6.1+dfsg1-3ubuntu1.1
cjose
Fixed versions: Not specified
cjose
Fixed versions: Not specified
cjose
Fixed versions: Not specified
cjose
Fixed versions: Not specified
Complete source record
{
"id": "0aab31b627cf5e3ec237947906c92893785dbc6a2fee64cf3d59d00b2101324d",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-37464",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-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:UBUNTU-CVE-2023-37464",
"products": [
{
"name": {
"value": "cjose",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.6.0+dfsg1-1ubuntu0.1~esm1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "0.4.1-3ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "0.5.1+dfsg1-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.5.1+dfsg1-2",
"evidence": "/affected/0/versions"
},
{
"value": "0.5.1+dfsg1-2build1",
"evidence": "/affected/0/versions"
},
{
"value": "0.6.0+dfsg1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "cjose",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.6.1+dfsg1-1ubuntu0.1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "0.6.1+dfsg1-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "cjose",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.6.1+dfsg1-3ubuntu1.1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "0.6.1+dfsg1-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.6.1+dfsg1-3",
"evidence": "/affected/2/versions"
},
{
"value": "0.6.1+dfsg1-3ubuntu1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "cjose",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.6.2.2-1",
"evidence": "/affected/3/versions"
},
{
"value": "0.6.2.2-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "0.6.2.2-1build2",
"evidence": "/affected/3/versions"
},
{
"value": "0.6.2.2-1build3",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "cjose",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.6.2.3-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "cjose",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.6.2.4-1",
"evidence": "/affected/5/versions"
},
{
"value": "0.6.2.8-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "cjose",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.6.2.3-1",
"evidence": "/affected/6/versions"
},
{
"value": "0.6.2.4-1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2023-37464",
"aliases": [
"UBUNTU-CVE-2023-37464"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.6.0+dfsg1-1ubuntu0.1~esm1"
}
]
}
],
"package": {
"name": "cjose",
"purl": "pkg:deb/ubuntu/cjose?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"0.4.1-3ubuntu1",
"0.5.1+dfsg1-1",
"0.5.1+dfsg1-2",
"0.5.1+dfsg1-2build1",
"0.6.0+dfsg1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37464.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcjose0",
"binary_version": "0.6.0+dfsg1-1ubuntu0.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.6.1+dfsg1-1ubuntu0.1"
}
]
}
],
"package": {
"name": "cjose",
"purl": "pkg:deb/ubuntu/cjose?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.6.1+dfsg1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37464.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcjose0",
"binary_version": "0.6.1+dfsg1-1ubuntu0.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.6.1+dfsg1-3ubuntu1.1"
}
]
}
],
"package": {
"name": "cjose",
"purl": "pkg:deb/ubuntu/cjose?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.6.1+dfsg1-1",
"0.6.1+dfsg1-3",
"0.6.1+dfsg1-3ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37464.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcjose0",
"binary_version": "0.6.1+dfsg1-3ubuntu1.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cjose",
"purl": "pkg:deb/ubuntu/cjose?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.6.2.2-1",
"0.6.2.2-1build1",
"0.6.2.2-1build2",
"0.6.2.2-1build3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37464.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcjose0",
"binary_version": "0.6.2.2-1build3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cjose",
"purl": "pkg:deb/ubuntu/cjose?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.6.2.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37464.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcjose0",
"binary_version": "0.6.2.3-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cjose",
"purl": "pkg:deb/ubuntu/cjose?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.6.2.4-1",
"0.6.2.8-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37464.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcjose0",
"binary_version": "0.6.2.8-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cjose",
"purl": "pkg:deb/ubuntu/cjose?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.6.2.3-1",
"0.6.2.4-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-37464.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcjose0",
"binary_version": "0.6.2.4-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:24.759146454Z",
"provider": "osv",
"upstream": [
"CVE-2023-37464"
],
"references": [
"https://ubuntu.com/security/CVE-2023-37464",
"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://ubuntu.com/security/notices/USN-6307-1",
"https://www.cve.org/CVERecord?id=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": 355589,
"published_at": "2023-07-14T21:15:00+00:00"
}