What’s Vulnerable › Vulnerabilities
CVE-2026-32877: Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field
- Severity: high (CVSS 8.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-03-30 · updated 2026-06-17
- Weakness: CWE-125
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 products
- randombit botan: from 2.3.0 before 3.11.0 — fixed in 3.11.0
How to fix
Upgrade to a fixed version: randombit botan 3.11.0. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-32877 or the next vulnerability affects your stack