Vulnerability · Published Mar 30, 2026 · Assigned by GitHub_M
CVE-2026-32877Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field
High 8.2
In plain English
A high-severity out-of-bounds read in botan from randombit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | botan3 | 3.11.0-r0 | ALPINE-CVE-2026-32877 |
| Debian:12 | botan | no fix listed | DEBIAN-CVE-2026-32877 |
| Debian:13 | botan | no fix listed | DEBIAN-CVE-2026-32877 |
| Debian:13 | botan3 | 3.11.0+dfsg-2 | DEBIAN-CVE-2026-32877 |
| Debian:14 | botan3 | 3.11.0+dfsg-2 | DEBIAN-CVE-2026-32877 |
| Ubuntu:25.10 | botan | no fix listed | UBUNTU-CVE-2026-32877 |
| Ubuntu:25.10 | botan3 | no fix listed | UBUNTU-CVE-2026-32877 |
| Ubuntu:26.04:LTS | botan3 | no fix listed | UBUNTU-CVE-2026-32877 |
| Ubuntu:26.10 | botan3 | no fix listed | UBUNTU-CVE-2026-32877 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
References
- https://github.com/randombit/botan/security/advisories/GHSA-7jj6-4r42-w9h6 x_refsource_CONFIRM