{"id":"CVE-2026-118769","aliases":["CVE-2026-118769"],"related":[],"kind":"vulnerability","state":"published","title":"Botan: Integer overflow when reporting block size in FFI can cause memory corruption","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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 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.","source":"cvelist"}],"published":"2026-10-29T17:22:07.316Z","modified":"2026-10-30T19:37:07.073Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.2,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.2,"rating":"CRITICAL"}],"cwes":["CWE-125","CWE-681","CWE-787"],"affected":[{"ranges":[{"version":">= 2.1.0, < 3.13.0","status":"affected"}],"vendor":"randombit","product":"botan","source":"cvelist"}],"references":[{"url":"https://github.com/randombit/botan/security/advisories/GHSA-c68p-822g-jfvr","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/randombit/botan/pull/5805","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/randombit/botan/commit/c6089ab7fab616517d56c447c93e13a5c57a0af3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-29T20:20:31.067Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-118769","url":"https://www.cve.org/CVERecord?id=CVE-2026-118769","licence":"CVE Terms of Use","modified":"2026-10-29T20:21:04.235Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-118769","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118769","licence":"Public domain","modified":"2026-10-30T19:37:07.073Z"}],"updatedAt":"2026-11-25T22:59:47.817Z","epss":{"score":0.00365,"percentile":0.3241,"date":"2026-12-01T12:00:22.000Z"}}