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 | Vendor | Product | Affected 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.
References
- https://github.com/randombit/botan/security/advisories/GHSA-c68p-822g-jfvr Vendor Advisory
- https://github.com/randombit/botan/commit/c6089ab7fab616517d56c447c93e13a5c57a0a... Patch
- https://github.com/randombit/botan/pull/5805 Patch
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-1187... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-118769 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-118769 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-118769 Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-118769 Vendor Advisory
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
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
Sources
CVE-2026-118769 · NVD
CVE-2026-118769 · MITRE
CVE-2026-118769 · OSV
GHSA-c68p-822g-jfvr · GHSA
UBUNTU-CVE-2026-118769 · OSV
DEBIAN-CVE-2026-118769 · OSV
Track software like this
Free during beta