
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-32877 is a heap buffer over-read vulnerability in the Botan C++ cryptography library affecting SM2 decryption operations. During SM2 decryption, the authentication code value (C3) validation logic fails to verify that the encoded value is of the expected length before performing a comparison, allowing an invalid ciphertext to trigger a heap over-read of up to 31 bytes. The vulnerability affects Botan versions 2.3.0 through 3.10.x and was patched in version 3.11.0. It carries a CVSS v3.1 base score of 8.2 (High), reflecting its network-accessible, no-authentication-required attack surface (GitHub Advisory).
The root cause is classified as CWE-125 (Out-of-bounds Read). During SM2 decryption, the C3 authentication code field is read and compared without first validating that its encoded length matches the expected size. An attacker supplying a crafted ciphertext with an undersized C3 hash field causes the library to read up to 31 bytes beyond the intended buffer boundary on the heap. This is exploitable remotely with no privileges or user interaction required, making it particularly dangerous in contexts where servers process attacker-controlled SM2 ciphertexts — such as Chinese standards-compliant TLS (TLCP), payment systems, and enterprise applications (GitHub Advisory).
Successful exploitation can cause a process crash (denial of service) due to the heap over-read, or trigger undefined behavior that may result in partial disclosure of heap memory contents. The confidentiality impact is rated Low, as up to 31 bytes of adjacent heap memory could potentially be leaked, while availability impact is rated High due to the likelihood of a crash. Any application using Botan's SM2 decryption functionality — including TLCP-compliant servers, payment systems, and enterprise applications — is within scope (GitHub Advisory).
The primary remediation is to upgrade Botan to version 3.11.0 or later, which includes the fix for this vulnerability (GitHub Advisory). If immediate patching is not feasible, organizations should limit network exposure of services using Botan's SM2 decryption functionality through network segmentation, firewall rules, and access controls to restrict which clients can submit ciphertexts. Monitoring for unexpected application crashes or abnormal behavior in systems using Botan is also recommended as a compensating control.
The vulnerability was reported by researcher HarutoKimura and disclosed via GitHub Security Advisories on March 29–30, 2026 (GitHub Advisory). Coverage appeared on security aggregation platforms and the Solus Linux community forum noted it in a weekly security roundup (Solus Forum). German Linux security outlet Pro-Linux also covered multiple Botan 3 issues including this CVE (Pro-Linux). Community reaction has been measured, consistent with a library-level vulnerability with no active exploitation.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."