CVE-2026-104267 Botan: scrypt V-buffer heap overflow on 32-bit from constructor-accepted parameters
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
9 packages: 1 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/botan(Debian 12) | = 2.19.3+dfsg-1; = 2.19.3+dfsg-1+deb12u1; = 2.19.4+dfsg-1; = 2.19.5+dfsg-1 +4 more | No fix listed | No fix yet |
| debian/botan(Debian 13) | = 2.19.5+dfsg-4; All versions | No fix listed | No fix yet |
| debian/botan3(Debian 13) | = 3.7.1+dfsg-2; = 3.8.1+dfsg-1; = 3.9.0+dfsg-1; = 3.9.0+dfsg-2 +12 more | No fix listed | No fix yet |
| ubuntu/botan(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/botan(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/botan3(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/botan3(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/botan3(Debian 14) | < 3.13.0+dfsg-2; = 3.7.1+dfsg-2; = 3.8.1+dfsg-1; = 3.9.0+dfsg-1 +11 more | 3.13.0+dfsg-2 | Fixed |
| randombit botan | = >= 2.7.0, < 3.13.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/botan(Debian:12) | All versions | No fix listed |
| debian/botan(Debian:13) | All versions | No fix listed |
| debian/botan3(Debian:14) | < 3.13.0+dfsg-2 | 3.13.0+dfsg-2 |
| debian/botan3(Debian:13) | All versions | No fix listed |
| randombit botan | = >= 2.7.0, < 3.13.0 | No fix listed |
| debian/botan(Debian:12) | = 2.19.3+dfsg-1 | No fix listed |
| debian/botan(Debian:12) | = 2.19.3+dfsg-1+deb12u1 | No fix listed |
| debian/botan(Debian:12) | = 2.19.4+dfsg-1 | No fix listed |
| debian/botan(Debian:12) | = 2.19.5+dfsg-1 | No fix listed |
| debian/botan(Debian:12) | = 2.19.5+dfsg-2 | No fix listed |
| debian/botan(Debian:12) | = 2.19.5+dfsg-3 | No fix listed |
| debian/botan(Debian:12) | = 2.19.5+dfsg-4 | No fix listed |
| debian/botan(Debian:13) | = 2.19.5+dfsg-4 | No fix listed |
| debian/botan3(Debian:13) | = 3.10.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:13) | = 3.10.0+dfsg-2 | No fix listed |
| debian/botan3(Debian:13) | = 3.11.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:13) | = 3.11.1+dfsg-1 | No fix listed |
| debian/botan3(Debian:13) | = 3.11.1+dfsg-2 | No fix listed |
| debian/botan3(Debian:13) | = 3.12.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:13) | = 3.12.0+dfsg-2 | No fix listed |
| debian/botan3(Debian:13) | = 3.12.0+dfsg-2~deb13u1 | No fix listed |
| debian/botan3(Debian:13) | = 3.13.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:13) | = 3.13.0+dfsg-2 | No fix listed |
| debian/botan3(Debian:13) | = 3.7.1+dfsg-2 | No fix listed |
| debian/botan3(Debian:13) | = 3.8.1+dfsg-1 | No fix listed |
Show 21 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/botan3(Debian:13) | = 3.9.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:13) | = 3.9.0+dfsg-2 | No fix listed |
| debian/botan3(Debian:13) | = 3.9.0+dfsg-2.1 | No fix listed |
| debian/botan3(Debian:14) | = 3.10.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:14) | = 3.10.0+dfsg-2 | No fix listed |
| debian/botan3(Debian:14) | = 3.11.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:14) | = 3.11.1+dfsg-1 | No fix listed |
| debian/botan3(Debian:14) | = 3.11.1+dfsg-2 | No fix listed |
| debian/botan3(Debian:14) | = 3.12.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:14) | = 3.12.0+dfsg-2 | No fix listed |
| debian/botan3(Debian:14) | = 3.12.0+dfsg-2~deb13u1 | No fix listed |
| debian/botan3(Debian:14) | = 3.13.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:14) | = 3.7.1+dfsg-2 | No fix listed |
| debian/botan3(Debian:14) | = 3.8.1+dfsg-1 | No fix listed |
| debian/botan3(Debian:14) | = 3.9.0+dfsg-1 | No fix listed |
| debian/botan3(Debian:14) | = 3.9.0+dfsg-2 | No fix listed |
| debian/botan3(Debian:14) | = 3.9.0+dfsg-2.1 | No fix listed |
| ubuntu/botan(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/botan(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/botan3(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/botan3(Ubuntu:26.10) | All versions | No fix listed |
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
- Debian Security Tracker CVE-2026-104267 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-118516 third-party-advisory