CVE-2026-32877
published high CVSS 3.1 · 8.2Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| randombit | — | botan>= 2.3.0, < 3.11.0 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | botan3 | Fixed | 3.11.0-r0 | Package fix record |
| Alpine Linux | v3.24 | botan3 | Fixed | 3.11.0-r0 | Package fix record |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| randombit | botan | >= 2.3.0, < 3.11.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-125 CWE-125: Out-of-bounds Read
References
1Provider assertions
2GitHub_M · cna
Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 08160d03d6404ddb30df5dadf1f587c68625f36b2d5a52bf65ce76c6c6cf6e67
- Ingested
- 23 Sep 2026, 09:10:18 UTC
- Source record
- Official CVE record