Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.9

CVE-2026-118769: Botan library may corrupt memory with large block size

CVE-2026-118769 · published 23 days ago
Summary

Versions of the Botan cryptography library up to 3.13.0 can miscalculate the size of a block when a specific cipher is used through its simple C interface. This miscalculation can cause a program to allocate too little memory, potentially leading to memory corruption. Upgrade to Botan 3.13.0 or later to resolve the issue.

What to do
  • Update debian botan3 to version 3.13.0+dfsg-2.
Affected software
Ecosystem VendorProductAffected versions
– randombit botan >= 2.1.0, < 3.13.0
Ubuntu:18.04:LTS canonical botan All versions
Debian:12 debian botan All versions
Debian:13 debian botan3 All versions
Debian:14 debian botan3 < 3.13.0+dfsg-2
Fix: upgrade to 3.13.0+dfsg-2
Original advisory text
Botan: Integer overflow when reporting block size in FFI can cause memory corruption
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.9 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-125Out-of-bounds Read
CWE-681Incorrect Conversion between Numeric Types
CWE-787Out-of-bounds Write
Timeline
Published29 Oct 2026
Updated22 Nov 2026
First seen29 Oct 2026
Track software like this
Free during beta