{"id":"CVE-2026-32877","aliases":["CVE-2026-32877"],"related":[],"kind":"vulnerability","state":"published","title":"Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-03-30T20:36:43.672Z","modified":"2026-06-17T10:36:29.630Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":">= 2.3.0, < 3.11.0","status":"affected"}],"vendor":"randombit","product":"botan","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.3.0","fixed":"3.11.0"}],"vendor":"botan_project","product":"botan","cpe":"cpe:2.3:a:botan_project:botan:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/randombit/botan/security/advisories/GHSA-7jj6-4r42-w9h6","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-03-31T15:25:50.895Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-32877","url":"https://www.cve.org/CVERecord?id=CVE-2026-32877","licence":"CVE Terms of Use","modified":"2026-03-31T15:26:01.443Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-32877","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32877","licence":"Public domain","modified":"2026-06-17T10:36:29.630Z"}],"updatedAt":"2026-11-25T22:59:17.536Z","epss":{"score":0.00326,"percentile":0.27668,"date":"2026-12-01T12:00:22.000Z"}}