{"id":"CVE-2026-118769","state":"PUBLISHED","title":"Botan: Integer overflow when reporting block size in FFI can cause memory corruption","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.","publishedAt":"2026-10-29T17:22:07.316Z","updatedAt":"2026-10-29T20:21:04.235Z","severity":{"score":9.2,"label":"Critical","version":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["randombit botan"],"affected":[{"vendor":"randombit","product":"botan","versions":[{"version":">= 2.1.0, < 3.13.0","status":"affected"}]}],"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"],"weaknesses":["CWE-125","CWE-681","CWE-787"],"ingestedAt":"2026-10-29T23:08:31.977Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/118xxx/CVE-2026-118769.json","commit":"dc7676b3f67d6707e4927968546e7e0125ff7ec7","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-118769","state":"PUBLISHED","datePublished":"2026-10-29T17:22:07.316Z","dateUpdated":"2026-10-29T20:21:04.235Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-28T19:20:05.017Z"},"containers":{"cna":{"title":"Botan: Integer overflow when reporting block size in FFI can cause memory corruption","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"randombit","product":"botan","versions":[{"version":">= 2.1.0, < 3.13.0","status":"affected"}]}],"references":[{"url":"https://github.com/randombit/botan/security/advisories/GHSA-c68p-822g-jfvr","name":"https://github.com/randombit/botan/security/advisories/GHSA-c68p-822g-jfvr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/randombit/botan/pull/5805","name":"https://github.com/randombit/botan/pull/5805","tags":["x_refsource_MISC"]},{"url":"https://github.com/randombit/botan/commit/c6089ab7fab616517d56c447c93e13a5c57a0af3","name":"https://github.com/randombit/botan/commit/c6089ab7fab616517d56c447c93e13a5c57a0af3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":9.2,"baseSeverity":"CRITICAL","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","description":"CWE-125: Out-of-bounds Read","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-681","lang":"en","description":"CWE-681: Incorrect Conversion between Numeric Types","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787: Out-of-bounds Write","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-29T17:22:07.316Z"},"source":{"advisory":"GHSA-c68p-822g-jfvr","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-29T20:20:31.067238Z","id":"CVE-2026-118769","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-29T20:21:04.235Z"}}]}}}