Critical severity · published Oct 29, 2026
CVE-2026-118769
Botan: Integer overflow when reporting block size in FFI can cause memory corruption
New
9.2
CVSS
–
EPSS
No
On KEV
Description
Botan is a C++ cryptography library. From 2.1.0 until 3.13.0, the Botan C API function botan_block_cipher_block_size converted a size_t block size to int without a bounds check. In an application that accepts external algorithm parameter strings and uses the FFI raw ECB mode, an attacker can select the variable-block-size Lion cipher so that the reported size is truncated, the caller allocates insufficient memory, and later block processing causes memory corruption. The C++ API and normally used C API modes such as CBC and CTR are unaffected. This issue is fixed in version 3.13.0.
Exploitation
Is it being used?
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BO
botan · randombit
>= 2.1.0, < 3.13.0 · source: vendor
Affected product
BO
botan
randombit
More from botan
9.1
CVE-2026-34582
Botan has a TLS 1.3 certificate authentication bypass
8.2
CVE-2026-32877
Botan: Heap Buffer Over-read in SM2 Decryption via Undersized C3 Hash Field
7.5
CVE-2026-44378
Botan: Quadratic complexity decoding BER indefinite length encodings
7.5
CVE-2026-34580
Botan has a certificate authentication bypass due to trust anchor confusion
7.5
CVE-2024-34703
Botan Vulnerable to Denial of Service Due to Overly Large Elliptic Curve Parameters