CVE-2026-118769Botan: 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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | botan | Fix pending | UBUNTU-CVE-2026-118769 | |
| Ubuntu 22.04 | botan | Fix pending | UBUNTU-CVE-2026-118769 | |
| Ubuntu 20.04 | botan | Fix pending | UBUNTU-CVE-2026-118769 | |
| Ubuntu 18.04 | botan | Fix pending | UBUNTU-CVE-2026-118769 | |
| Debian 14 | botan3 | Fixed | 3.13.0+dfsg-2 | DEBIAN-CVE-2026-118769 |
| Debian 13 | botan | Fix pending | DEBIAN-CVE-2026-118769 | |
| Debian 13 | botan3 | Fix pending | DEBIAN-CVE-2026-118769 | |
| Debian 12 | botan | Fix pending | DEBIAN-CVE-2026-118769 | |
| Red Hat Enterprise Linux 10 | podman-sequoia | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-sequoia-sq | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-sequoia-sqv | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sequoia-sq | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sequoia-sqv | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-sequoia-sq | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sequoia-sq | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- randombit botan: affected: >= 2.1.0, < 3.13.0
References
- https://github.com/randombit/botan/security/advisories/GHSA-c68p-822g-jfvr
- https://github.com/randombit/botan/pull/5805
- https://github.com/randombit/botan/commit/c6089ab7fab616517d56c447c93e13a5c57a0af3
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.