Vulnerability · Published Oct 29, 2026 · Assigned by GitHub_M
CVE-2026-118765Botan: AutoSeeded_RNG can become reinitialized from predictable data after clearing state
High 7.3
In plain English
A high-severity security flaw in botan from randombit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Botan is a C++ cryptography library. From 3.7.0 until 3.13.0, an application that calls AutoSeeded_RNG::clear() and then calls randomize with an empty output buffer while the generator is unseeded can cause AutoSeeded_RNG to mark itself seeded without consulting the configured entropy source. On builds without BOTAN_HAS_SYSTEM_RNG, the fallback uses only a clock value and process ID, so a later non-empty request can produce output from predictable state. This issue is fixed in version 3.13.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | botan | no fix listed | DEBIAN-CVE-2026-118765 |
| Debian:13 | botan | no fix listed | DEBIAN-CVE-2026-118765 |
| Debian:13 | botan3 | no fix listed | DEBIAN-CVE-2026-118765 |
| Debian:14 | botan3 | 3.13.0+dfsg-2 | DEBIAN-CVE-2026-118765 |
Affected products (as reported)
Weakness: CWE-335 · Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/randombit/botan/security/advisories/GHSA-95xx-xh9v-v9c4 x_refsource_CONFIRM
- https://github.com/randombit/botan/pull/5838 x_refsource_MISC
- https://github.com/randombit/botan/commit/a7389222ace990604b6985add91ee06f55a80c0e x_refsource_MISC