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

Published Nov 6, 2026
·
Updated

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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Botan to a version that resolves this vulnerability.

    Fixed in 3.13.0

Event History

Nov 6, 2026
CVE Published
via MITRE·09:25 PM
Data Sourced
via MITRE·09:25 PM
DescriptionWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Only 32-bit systems are affected, and exposure requires that Scrypt is enabled and the application accepts Scrypt parameters from a hostile source. One identified example is an application that decrypts attacker-supplied encrypted private keys.

2

What must an attacker be able to control to trigger the overflow?

The attacker must be able to provide Scrypt parameters that reach Botan's Scrypt implementation. Crafted parameters can cause the required-memory calculation to wrap, leading to a too-small heap allocation followed by roughly four gigabytes of writes beyond that buffer.

3

What is the expected impact of successful exploitation?

The described triggering condition immediately crashes the process, causing denial of service. Arbitrary code execution has not been demonstrated and is considered difficult, though it cannot be excluded because the condition provides a heap overwrite primitive.

4

What should teams do if they cannot immediately update?

Avoid processing hostile or untrusted Scrypt parameters on affected 32-bit deployments, or otherwise ensure such parameters are not accepted by the application. The issue is fixed in Botan version 3.13.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203