CVE-2026-32877

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

Configuration 1 (hide)

cpe:2.3:a:botan_project:botan:*:*:*:*:*:*:*:*

History

13 Apr 2026, 13:57

Type Values Removed Values Added
CPE cpe:2.3:a:botan_project:botan:*:*:*:*:*:*:*:*
First Time Botan Project botan
Botan Project
References () https://github.com/randombit/botan/security/advisories/GHSA-7jj6-4r42-w9h6 - () https://github.com/randombit/botan/security/advisories/GHSA-7jj6-4r42-w9h6 - Vendor Advisory

01 Apr 2026, 14:24

Type Values Removed Values Added
Summary
  • (es) Botan es una biblioteca de criptografía C++. Desde la versión 2.3.0 hasta antes de la versión 3.11.0, durante el descifrado SM2, el código que verificaba el valor del código de autenticación (C3) no verificó que el valor codificado tuviera la longitud esperada antes de la comparación. Un texto cifrado no válido puede causar una lectura excesiva de la pila (heap over-read) de hasta 31 bytes, lo que resulta en un fallo o potencialmente en otro comportamiento indefinido. Este problema ha sido parcheado en la versión 3.11.0.

30 Mar 2026, 21:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-30 21:17

Updated : 2026-04-13 13:57


NVD link : CVE-2026-32877

Mitre link : CVE-2026-32877

CVE.ORG link : CVE-2026-32877


JSON object : View

Products Affected

botan_project

  • botan
CWE
CWE-125

Out-of-bounds Read