Skip to main content
← All vulnerabilities
CVE-2026-32877

Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.11.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • randombit botan

    From 2.3.0 · fixed in 3.11.0

References 1

GitHub · randombit/botan