CVEfocus › CVE database › CVE-2026-32877

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

CVSS 8.2 HighEPSS 0.6% (higher than 42% of CVEs)Published 2026-03-30Updated 2026-03-31Assigner: GitHub_M

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.

CWE-125

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
8Fix pending
1Under investigation
2Will not fix
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10botan3Fix pendingUBUNTU-CVE-2026-32877
Ubuntu 26.04botan3Under investigationUBUNTU-CVE-2026-32877
Ubuntu 25.10botanWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-32877
Ubuntu 25.10botan3Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-32877
Ubuntu 24.04botanFix pendingUBUNTU-CVE-2026-32877
Ubuntu 22.04botanFix pendingUBUNTU-CVE-2026-32877
Ubuntu 20.04botanFix pendingUBUNTU-CVE-2026-32877
Ubuntu 18.04botanFix pendingUBUNTU-CVE-2026-32877
Ubuntu 16.04botan1.10Fix pendingUBUNTU-CVE-2026-32877
Debian 14botan3Fixed3.11.0+dfsg-2DEBIAN-CVE-2026-32877
Debian 13botanFix pendingDEBIAN-CVE-2026-32877
Debian 13botan3Fixed3.11.0+dfsg-2DEBIAN-CVE-2026-32877
Debian 12botanFix pendingDEBIAN-CVE-2026-32877
Red Hat Enterprise Linux 10rust-sequoia-sqNot affected
Red Hat Enterprise Linux 10rust-sequoia-sqvNot affected
Red Hat Enterprise Linux 10sequoia-sqNot affected
Red Hat Enterprise Linux 10sequoia-sqvNot affected
Alpine Linux 3.24botan3Fixed3.11.0-r0ALPINE-CVE-2026-32877

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.