CVE-2026-104267
published medium CVSS 4.0 · 4.1Botan: scrypt V-buffer heap overflow on 32-bit from constructor-accepted parameters
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| randombit | — | botan>= 2.7.0, < 3.13.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | botan3 | Fixed | 3.14.1-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| randombit | botan | >= 2.7.0, < 3.13.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-787 CWE-787: Out-of-bounds Write
References
3Provider assertions
2GitHub_M · cna
Botan: scrypt V-buffer heap overflow on 32-bit from constructor-accepted parameters
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b5da595bf3374ca48dcfa8e104fcb85d970d0a8bb19c06eb6a2dd27d28e1f5a2
- Ingested
- 11 Nov 2026, 03:39:58 UTC
- Source record
- Official CVE record