Skip to content
OpenAdvisories
High · 8.2 CVE-2026-32877 EUVD-2026-17210

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

Published Mar 30, 2026 · Updated Mar 31, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
randombit botan >= 2.3.0, < 3.11.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 botan3 3.11.0+dfsg-2 —
Debian 13 botan No fix yet —
Debian 13 botan3 3.11.0+dfsg-2 —
Debian 12 botan No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 botan3 No fix yet —
Ubuntu 26.04 LTS botan3 No fix yet —
Ubuntu 25.10 botan +1 No fix yet —
Ubuntu 20.04 LTS botan No fix yet —
Ubuntu 18.04 LTS botan No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS botan1.10 No fix yet —
Ubuntu Pro 24.04 LTS botan No fix yet —
Ubuntu Pro 22.04 LTS botan No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 botan3 3.11.0-r0 —

References