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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-125",
"CWE-681",
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118769.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "2.1.0"
},
{
"fixed": "3.13.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "c6089ab7fab616517d56c447c93e13a5c57a0af3"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118769.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "121098210841112036724711608983247288195",
"length": 152
},
"id": "CVE-2026-118769-598d3690",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/c6089ab7fab616517d56c447c93e13a5c57a0af3",
"target": {
"file": "src/lib/ffi/ffi_block.cpp",
"function": "botan_block_cipher_block_size"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"16817359195568761475930056364199673911",
"183177655608760677177084223361957734984",
"30561609617599177742555264186201557616",
"242289958001562596520268082242514753560",
"253266267082474433763755065648220923609",
"300444249402921091170003749064887688038",
"59968064099950927089828815020344854655"
],
"threshold": 0.9
},
"id": "CVE-2026-118769-cec8f676",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/randombit/botan/commit/c6089ab7fab616517d56c447c93e13a5c57a0af3",
"target": {
"file": "src/lib/ffi/ffi_block.cpp"
}
}
]
"2026-11-01T07:03:38Z"