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.
Published: 2026-10-29
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Predictable random output that can compromise cryptographic operations
Action: Patch
AI Analysis

Impact

An application using the random number generator library Botan from versions 3.7.0 through 3.13.0 may unknowingly reinitialize its RNG to a predictable state. The issue occurs when a caller invokes AutoSeeded_RNG::clear() and then requests random data with an empty output buffer while the generator remains unseeded. The library then marks the RNG as seeded without querying the configured entropy source, leaving it potentially seeded only with clock values and process IDs on builds without system‑backed randomness. This predictable state can lead to repeated or biased outputs, undermining the security of keys, nonces, or other cryptographic material generated thereafter. The vulnerability does not grant remote code execution but can still facilitate key compromise or entropy exhaustion attacks.

Affected Systems

Affected by this vulnerability are all applications that link to randombit botan 3.7.0 up to and including 3.13.0. The flaw resides in the AutoSeeded_RNG class and impacts builds that do not enable BOTAN_HAS_SYSTEM_RNG, meaning the fallback entropy source may use only clock values and process IDs. The issue also affects any runtime that calls AutoSeeded_RNG::clear() before generating random data with an empty buffer. Upgrading to 3.13.0 or later resolves the problem by correctly seeding from a trusted source.

Risk and Exploitability

Risk assessment shows a CVSS score of 7.3, indicating moderate to high severity. The EPSS score is not available, so the current exploitation likelihood remains unknown. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is local, requiring an attacker to influence the sequence of RNG calls, for example by modifying application behavior or supplying specific inputs, to trigger the predictable reseeding scenario. If achieved, future RNG output can become predictable, endangering keys or nonces.

Generated by OpenCVE AI on October 29, 2026 at 18:56 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official patch by upgrading randombit botan to version 3.13.0 or later.
  • Compile against a Botan build that has BOTAN_HAS_SYSTEM_RNG enabled so that reseeding always uses a trusted system entropy source.
  • Audit application code to eliminate unnecessary calls to AutoSeeded_RNG::clear() or empty randomize requests, ensuring that reseeding occurs only after genuine entropy has been collected.

Generated by OpenCVE AI on October 29, 2026 at 18:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 29 Oct 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Randombit
Randombit botan
Vendors & Products Randombit
Randombit botan

Thu, 29 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
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.
Title Botan: AutoSeeded_RNG can become reinitialized from predictable data after clearing state
Weaknesses CWE-335
References
Metrics cvssV4_0

{'score': 7.3, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-29T17:12:07.807Z

Reserved: 2026-10-28T19:20:05.017Z

Link: CVE-2026-118765

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-29T17:18:07.523

Modified: 2026-10-29T17:18:07.523

Link: CVE-2026-118765

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T19:30:15Z

Weaknesses
  • CWE-335

    Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)