botan, botan1.10 and 1 more products — security advisory
Botan is a C++ cryptography library. From version 2.3.0 to before version 3.11.0, during SM2 decryption, the code that checked the authentication code value (C3) failed to check that the encoded value was of the expected length prior to comparison. An invalid ciphertext can cause a heap over-read of up to 31 bytes, resulting in a crash or potentially other undefined behavior. This issue has been patched in version 3.11.0.
- Products
- botan, botan1.10, botan3
- Affected versions
- 1.10.10-6, 1.10.12-1, 1.10.16-1, 1.10.17-0.1, 1.10.5-1, 1.10.5-1+deb7u1ubuntu0.14.04.1, 1.10.5-1+deb7u1ubuntu0.14.04.1+esm1, 1.10.5-1ubuntu1, 2.12.1-2, 2.12.1-2build1, 2.17.3+dfsg-3, 2.19.1+dfsg-2ubuntu1, 2.19.1+dfsg-2ubuntu1+esm1, 2.19.3+dfsg-1ubuntu1, 2.19.3+dfsg-1ubuntu2, 2.19.3+dfsg-1ubuntu2+esm1, 2.19.5+dfsg-4, 2.4.0-3, 2.4.0-4, 2.4.0-5ubuntu1, 2.9.0-2, 2.9.0-2build1, 3.10.0+dfsg-2, 3.11.1+dfsg-2, 3.12.0+dfsg-2, 3.7.1+dfsg-2
- Fixed versions
- Not specified
- CVEs
- CVE-2026-32877
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:59 UTC · Revision 1
Source evidence
Botan is a C++ cryptography library. From version 2.3.0 to before version 3.11.0, during SM2 decryption, the code that checked the authentication code value (C3) failed to check that the encoded value was of the expected length prior to comparison. An invalid ciphertext can cause a heap over-read of up to 31 bytes, resulting in a crash or potentially other undefined behavior. This issue has been patched in version 3.11.0.
osv:UBUNTU-CVE-2026-32877
botan1.10
Fixed versions: Not specified
botan1.10
Fixed versions: Not specified
botan
Fixed versions: Not specified
botan1.10
Fixed versions: Not specified
botan
Fixed versions: Not specified
botan
Fixed versions: Not specified
botan
Fixed versions: Not specified
botan
Fixed versions: Not specified
botan3
Fixed versions: Not specified
botan3
Fixed versions: Not specified
botan3
Fixed versions: Not specified
Complete source record
{
"id": "edc683f06b3852b834c1d138e15511dad11f48f3f546feace0e69f512e3a1a2c",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-32877",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-32877",
"summary": "Botan is a C++ cryptography library. From version 2.3.0 to before version 3.11.0, during SM2 decryption, the code that checked the authentication code value (C3) failed to check that the encoded value was of the expected length prior to comparison. An invalid ciphertext can cause a heap over-read of up to 31 bytes, resulting in a crash or potentially other undefined behavior. This issue has been patched in version 3.11.0.",
"evidence": "osv:UBUNTU-CVE-2026-32877",
"products": [
{
"name": {
"value": "botan1.10",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.10.5-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.10.5-1ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "1.10.5-1+deb7u1ubuntu0.14.04.1",
"evidence": "/affected/0/versions"
},
{
"value": "1.10.5-1+deb7u1ubuntu0.14.04.1+esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "botan1.10",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.10.10-6",
"evidence": "/affected/1/versions"
},
{
"value": "1.10.12-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "botan",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.4.0-3",
"evidence": "/affected/2/versions"
},
{
"value": "2.4.0-4",
"evidence": "/affected/2/versions"
},
{
"value": "2.4.0-5ubuntu1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "botan1.10",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.10.16-1",
"evidence": "/affected/3/versions"
},
{
"value": "1.10.17-0.1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "botan",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.9.0-2",
"evidence": "/affected/4/versions"
},
{
"value": "2.9.0-2build1",
"evidence": "/affected/4/versions"
},
{
"value": "2.12.1-2",
"evidence": "/affected/4/versions"
},
{
"value": "2.12.1-2build1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "botan",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.17.3+dfsg-3",
"evidence": "/affected/5/versions"
},
{
"value": "2.19.1+dfsg-2ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "2.19.1+dfsg-2ubuntu1+esm1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "botan",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.19.3+dfsg-1ubuntu1",
"evidence": "/affected/6/versions"
},
{
"value": "2.19.3+dfsg-1ubuntu2",
"evidence": "/affected/6/versions"
},
{
"value": "2.19.3+dfsg-1ubuntu2+esm1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "botan",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.19.5+dfsg-4",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "botan3",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.7.1+dfsg-2",
"evidence": "/affected/8/versions"
}
]
},
{
"name": {
"value": "botan3",
"evidence": "/affected/9/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.10.0+dfsg-2",
"evidence": "/affected/9/versions"
},
{
"value": "3.11.1+dfsg-2",
"evidence": "/affected/9/versions"
},
{
"value": "3.12.0+dfsg-2",
"evidence": "/affected/9/versions"
}
]
},
{
"name": {
"value": "botan3",
"evidence": "/affected/10/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.7.1+dfsg-2",
"evidence": "/affected/10/versions"
},
{
"value": "3.10.0+dfsg-2",
"evidence": "/affected/10/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-32877",
"aliases": [
"UBUNTU-CVE-2026-32877"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan1.10",
"purl": "pkg:deb/ubuntu/botan1.10?arch=source&distro=esm-infra-legacy%2Ftrusty",
"ecosystem": "Ubuntu:Pro:14.04:LTS"
},
"versions": [
"1.10.5-1",
"1.10.5-1ubuntu1",
"1.10.5-1+deb7u1ubuntu0.14.04.1",
"1.10.5-1+deb7u1ubuntu0.14.04.1+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbotan-1.10-0",
"binary_version": "1.10.5-1+deb7u1ubuntu0.14.04.1+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan1.10",
"purl": "pkg:deb/ubuntu/botan1.10?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.10.10-6",
"1.10.12-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbotan-1.10-1",
"binary_version": "1.10.12-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan",
"purl": "pkg:deb/ubuntu/botan?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"2.4.0-3",
"2.4.0-4",
"2.4.0-5ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "botan",
"binary_version": "2.4.0-5ubuntu1"
},
{
"binary_name": "libbotan-2-4",
"binary_version": "2.4.0-5ubuntu1"
},
{
"binary_name": "python3-botan",
"binary_version": "2.4.0-5ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan1.10",
"purl": "pkg:deb/ubuntu/botan1.10?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.10.16-1",
"1.10.17-0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbotan-1.10-1",
"binary_version": "1.10.17-0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan",
"purl": "pkg:deb/ubuntu/botan?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.9.0-2",
"2.9.0-2build1",
"2.12.1-2",
"2.12.1-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "botan",
"binary_version": "2.12.1-2build1"
},
{
"binary_name": "libbotan-2-12",
"binary_version": "2.12.1-2build1"
},
{
"binary_name": "python3-botan",
"binary_version": "2.12.1-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan",
"purl": "pkg:deb/ubuntu/botan?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"2.17.3+dfsg-3",
"2.19.1+dfsg-2ubuntu1",
"2.19.1+dfsg-2ubuntu1+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "botan",
"binary_version": "2.19.1+dfsg-2ubuntu1+esm1"
},
{
"binary_name": "libbotan-2-19",
"binary_version": "2.19.1+dfsg-2ubuntu1+esm1"
},
{
"binary_name": "python3-botan",
"binary_version": "2.19.1+dfsg-2ubuntu1+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan",
"purl": "pkg:deb/ubuntu/botan?arch=source&distro=esm-apps%2Fnoble",
"ecosystem": "Ubuntu:Pro:24.04:LTS"
},
"versions": [
"2.19.3+dfsg-1ubuntu1",
"2.19.3+dfsg-1ubuntu2",
"2.19.3+dfsg-1ubuntu2+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "botan",
"binary_version": "2.19.3+dfsg-1ubuntu2+esm1"
},
{
"binary_name": "libbotan-2-19",
"binary_version": "2.19.3+dfsg-1ubuntu2+esm1"
},
{
"binary_name": "python3-botan",
"binary_version": "2.19.3+dfsg-1ubuntu2+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan",
"purl": "pkg:deb/ubuntu/botan?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.19.5+dfsg-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbotan-2-19",
"binary_version": "2.19.5+dfsg-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan3",
"purl": "pkg:deb/ubuntu/botan3?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.7.1+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "botan",
"binary_version": "3.7.1+dfsg-2"
},
{
"binary_name": "libbotan-3-7",
"binary_version": "3.7.1+dfsg-2"
},
{
"binary_name": "python3-botan",
"binary_version": "3.7.1+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan3",
"purl": "pkg:deb/ubuntu/botan3?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3.10.0+dfsg-2",
"3.11.1+dfsg-2",
"3.12.0+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "botan",
"binary_version": "3.12.0+dfsg-2"
},
{
"binary_name": "libbotan-3-12",
"binary_version": "3.12.0+dfsg-2"
},
{
"binary_name": "python3-botan",
"binary_version": "3.12.0+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "botan3",
"purl": "pkg:deb/ubuntu/botan3?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"3.7.1+dfsg-2",
"3.10.0+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32877.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "botan",
"binary_version": "3.10.0+dfsg-2"
},
{
"binary_name": "libbotan-3-10",
"binary_version": "3.10.0+dfsg-2"
},
{
"binary_name": "python3-botan",
"binary_version": "3.10.0+dfsg-2"
}
]
}
}
],
"modified": "2026-10-17T12:59:58.396822538Z",
"provider": "osv",
"upstream": [
"CVE-2026-32877"
],
"references": [
"https://ubuntu.com/security/CVE-2026-32877",
"https://www.cve.org/CVERecord?id=CVE-2026-32877",
"https://github.com/randombit/botan/security/advisories/GHSA-7jj6-4r42-w9h6"
]
},
"related_cves": [
{
"value": "CVE-2026-32877",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360045,
"published_at": "2026-03-30T21:17:00+00:00"
}