CVE-2026-118769randombit botan
Buffer overflow in Botan FFI function due to unchecked type conversion
Critical 9.2 No auth needed
Follow: this CVE · randombit · randombit botan We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.2
- EPSS
- —
- Auth required
- No
- Published
- Oct 29, 2026
- Updated
- Oct 30, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
The botan_block_cipher_block_size function in Botan's C API converts size_t to int without bounds checking in versions 2.1.0 through 3.12.x. An attacker can select the variable-block-size Lion cipher through external algorithm parameters, truncating the reported size and causing insufficient memory allocation. This results in memory corruption during block processing in raw ECB mode without authentication required.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 3.13.0
Update Botan to version 3.13.0 or later to fix the type conversion validation in the FFI function.
- Apply the vendor's security update for botan.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- randombit · botan
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.