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

- Severity: Medium 4.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-11-06T21:25:42.417Z
- Modified: 2026-11-12T22:11:01.153Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- randombit botan: >= 2.7.0, < 3.13.0

## References

- <https://github.com/randombit/botan/security/advisories/GHSA-36rp-hhp4-wh83>
- <https://github.com/randombit/botan/pull/5629>
- <https://github.com/randombit/botan/commit/459acdeba242dacc11ad8225e7d3e28203ce4f78>

## Sources

- CVE List: [CVE-2026-104267](https://www.cve.org/CVERecord?id=CVE-2026-104267), CVE Terms of Use, modified 2026-11-11
- NVD: [CVE-2026-104267](https://nvd.nist.gov/vuln/detail/CVE-2026-104267), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-104267 · Whole record: https://cve.day/CVE-2026-104267.json · Rebuilt by cve.day 2026-11-25T22:59:49.330Z
