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

Published Mar 30, 2026
·
Updated

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

2 affected components
Botan Botan>=2.3.0<3.11.0
Botan Project Botan>=2.3.0<3.11.0

Event History

Mar 30, 2026
CVE Published
via MITRE·08:36 PM
Data Sourced
via MITRE·08:36 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-32877?

CVE-2026-32877 is classified as a medium severity vulnerability.

2

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.

3

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.

4

What type of vulnerability is CVE-2026-32877?

CVE-2026-32877 is a heap buffer over-read vulnerability that occurs during SM2 decryption.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203