CVE-2026-118769
published critical CVSS 4.0 · 9.2Botan: Integer overflow when reporting block size in FFI can cause memory corruption
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| randombit | — | botan>= 2.1.0, < 3.13.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | botan3 | Fixed | 3.14.1-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.2 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| randombit | botan | >= 2.1.0, < 3.13.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-125 CWE-125: Out-of-bounds Read
- CWE-681 CWE-681: Incorrect Conversion between Numeric Types
- CWE-787 CWE-787: Out-of-bounds Write
References
3Provider assertions
2GitHub_M · cna
Botan: Integer overflow when reporting block size in FFI can cause memory corruption
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 23c185b90ef55607a393cdd712160398e4eebbe34d291f04c325aad23ed7ba55
- Ingested
- 29 Oct 2026, 20:26:57 UTC
- Source record
- Official CVE record