# CVE-2026-32877: Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-03-30T20:36:43.672Z
- Modified: 2026-06-17T10:36:29.630Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- randombit botan: >= 2.3.0, < 3.11.0
- botan_project botan: from 2.3.0 before 3.11.0

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- NVD: CVSS:3.1 8.2 High `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> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-32877](https://www.cve.org/CVERecord?id=CVE-2026-32877), CVE Terms of Use, modified 2026-03-31
- NVD: [CVE-2026-32877](https://nvd.nist.gov/vuln/detail/CVE-2026-32877), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-32877 · Whole record: https://cve.day/CVE-2026-32877.json · Rebuilt by cve.day 2026-11-25T22:59:17.536Z
