Botan: Integer overflow when reporting block size in FFI can cause memory corruption
Impact
Botan, a C++ cryptography library, has an integer overflow vulnerability in its C API function botan_block_cipher_block_size, affecting versions 2.1.0 to 3.13.0. An attacker with access to the FFI raw ECB mode can cause memory corruption. The C++ API and certain C API modes are unaffected.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
randombit · GitHub_M
botan
1 range
randombit · GitHub_M
botan
Compare with this publisher’s ranges. This does not inspect your installation.
affected
>= 2.1.0, < 3.13.0
Other versions: unknown
Original source description
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.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-118769View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Contributing organizations · 2
Assigning organization
Additional data publisher
What changed
Follow changes- CVE · CVE-2026-118769
Observed 2026-10-29T21:08:07.870Z · upstream updated 2026-10-29T20:21:04.235Z
Prioritization updated
before
[]
after
[ { "source": "CISA-ADP", "type": "SSVC", "role": "CISA Coordinator", "timestamp": "2026-10-29T20:20:31.067238Z", "decisions": [ { "name": "Exploitation", "value": "none" }, { "name": "Automatable", "value": "no" }, { "name": "Technical Impact", "value": "total" } ] } ]
Large field values are marked as truncated previews. Original source snapshots remain retained.
Showing up to 50 most recent observed changes.