cve.bz

CVE-2026-118769 randombit botan: Out-of-bounds Read

9.2 criticalEPSS 0.4%

Critical (9.2) in randombit botan. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

9.2 critical
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
EPSS
0.4% (unchanged from 0.4% a week ago) estimated probability of exploitation activity in the next 30 days; 31st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-681 Incorrect Conversion between Numeric Types
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-118769 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-118769?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-118769?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-118769 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
randombit botan>= 2.1.0, < 3.13.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12botanno fix listedDEBIAN-CVE-2026-118769
Debian13botan, botan3no fix listedDEBIAN-CVE-2026-118769
Debian14botan33.13.0+dfsg-2DEBIAN-CVE-2026-118769
Ubuntu18.04:LTS, 20.04:LTS, Pro:22.04:LTS and 1 morebotanno fix listedUBUNTU-CVE-2026-118769
Azure Linux3botan2no fix listedAZL-112409

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in Botan's C API function botan_block_cipher_block_size(). When an application utilizing the C FFI raw ECB mode accepts untrusted external algorithm parameter strings, an attacker can specify the variable-block-size Lion cipher to trigger an unchecked integer truncation from size_t to int. This causes the application to allocate an undersized buffer, resulting in heap memory corruption during subsequent block processing.

Red Hat's mitigation

Sanitize and restrict external algorithm parameter inputs using an allowlist to reject the variable-length Lion cipher when invoking Botan's C FFI interface. Alternatively, configure the application to utilize the native C++ API or standard cipher modes such as CBC or CTR instead of raw ECB mode.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/hub-rhel9Fix deferred
Red Hat Enterprise Linux 10rust-podman-sequoiaFix deferred
Red Hat Enterprise Linux 10rust-sequoia-sqFix deferred
Red Hat Enterprise Linux 10rust-sequoia-sqvFix deferred
Red Hat Enterprise Linux 9rust-sequoia-sqFix deferred
Red Hat Hardened Imagesrust-podman-sequoiaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-118769.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON