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

Botan library can cause memory corruption with certain cipher

published 1 day ago
Summary

Versions 2.1.0 through 3.12.x of the Botan cryptography library may miscalculate the size of a block when using the Lion cipher in a specific low‑level function. This can lead to insufficient memory being allocated and result in memory corruption. Upgrade to Botan version 3.13.0 or later to resolve the issue.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
Docker Hardened Images:Alpine:3.24 docker hardened images botan3 >= 3.11.1-r0
Original advisory 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…
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 (estimated)
  • Gives an attacker full control (estimated)
Severity
9.9 Critical
Timeline
Published1 Dec 2026
Updated1 Dec 2026
First seen1 Dec 2026
Sources
Track software like this
Free during beta