CVE-2026-32877CWE-125

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

High · published March 30, 2026

CVSS v3.1
8.2
EPSS
1%
Percentile
42.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.2 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00502 · 42.1th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2026-03-30T20:36Z
EPSS history
Timeline
  • 30 MAR 20:36Z
    Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field
    cvelistv5