CVE-2026-32877
Heap Over-Read in Botan SM2 Decryption Causes Crash
Publication date: 2026-03-30
Last updated on: 2026-04-13
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| botan_project | botan | From 2.3.0 (inc) to 3.11.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-125 | The product reads data past the end, or before the beginning, of the intended buffer. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Botan C++ cryptography library versions from 2.3.0 up to but not including 3.11.0. During the SM2 decryption process, the code responsible for checking the authentication code value (C3) did not verify that the encoded value was of the expected length before performing the comparison. This flaw allows an invalid ciphertext to trigger a heap over-read of up to 31 bytes, which can cause the program to crash or exhibit other undefined behaviors.
How can this vulnerability impact me? :
The vulnerability can lead to a heap over-read during SM2 decryption, which may cause the application using the Botan library to crash or behave unpredictably. This can result in denial of service or potentially other undefined behaviors that could be exploited depending on the context in which the library is used.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade the Botan cryptography library to version 3.11.0 or later, where the issue has been patched.