CVE-2026-32877: Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field
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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-32877?
CVE-2026-32877 is classified as a medium severity vulnerability.
How do I fix CVE-2026-32877?
To fix CVE-2026-32877, update Botan to version 3.11.0 or later to mitigate the heap buffer over-read issue.
What versions of Botan are affected by CVE-2026-32877?
CVE-2026-32877 affects Botan versions between 2.3.0 and before 3.11.0.
What type of vulnerability is CVE-2026-32877?
CVE-2026-32877 is a heap buffer over-read vulnerability that occurs during SM2 decryption.
What is the impact of CVE-2026-32877 on software security?
The impact of CVE-2026-32877 may lead to potential information disclosure due to improper validation of the C3 hash field during decryption.