Skip to content
OpenAdvisories
Medium · 4.1 CVE-2026-104267 EUVD-2026-118516

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

Published Nov 6, 2026 · Updated Nov 11, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
randombit botan >= 2.7.0, < 3.13.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 botan3 3.13.0+dfsg-2 —
Debian 13 botan +1 No fix yet —
Debian 12 botan No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 botan3 No fix yet —
Ubuntu 26.04 LTS botan3 No fix yet —
Ubuntu 20.04 LTS botan No fix yet —
Ubuntu 18.04 LTS botan No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS botan No fix yet —
Ubuntu Pro 22.04 LTS botan No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 botan2 No fix yet —

References