CVE Catalog

CVE-2026-104267

MediumCVSS 4.1
Published: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.11%

1th percentile - higher than 1% of all known CVEs

Summary

In Botan from 2.7.0 until 3.13.0, the 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 subsequently written data. This can cause approximately four gigabytes of Scrypt output to be written past the allocated heap buffer.

Risk Assessment

An attacker can trigger an immediate process crash (denial of service), and arbitrary code execution cannot be excluded from the overwrite primitive. Affects systems that enable Scrypt and accept parameters from a hostile source.

Recommendation

Upgrade Botan to version 3.13.0 or later. Avoid accepting arbitrary Scrypt parameters from untrusted sources.

Other vulnerabilities in Botan

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS