CVE-2026-104267

published 6 Nov 2026 · updated 12 Nov 2026

Botan: scrypt V-buffer heap overflow on 32-bit from constructor-accepted parameters

4.1MediumCVSS 4.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

Botan is a C++ cryptography library. From 2.7.0 until 3.13.0, Botan's Scrypt implementation on 32-bit platforms computes required memory with unchecked multiplication, allowing attacker-controlled Scrypt parameters to wrap the allocation size and create a buffer smaller than the algorithm subsequently writes. The issue affects systems that enable Scrypt and accept arbitrary parameters from a hostile source, including applications that decrypt attacker-supplied encrypted private keys. A triggering parameter set can cause approximately four gigabytes of Scrypt output to be written past the allocated heap buffer, immediately crashing the process and causing denial of service. Arbitrary code execution is not demonstrated and appears difficult, but cannot be excluded from the overwrite primitive. This issue is fixed in version 3.13.0.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
randombit>=2.7.0 <3.13.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-104267 severity on Zeptric[![CVE-2026-104267](https://zeptric.io/badge/cve/CVE-2026-104267.svg)](https://zeptric.io/cve/CVE-2026-104267)