CVE-2026-118765

Botan: AutoSeeded_RNG can become reinitialized from predictable data after clearing state

Published Oct 29, 2026 CVSS 4.0 · 7.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Randombit
Randombit botan
Vendors & Products Randombit
Randombit botan
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'}

Weaknesses
  • CWE-335

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 29, 2026, 8:19 PM
Reserved
Oct 28, 2026, 7:20 PM
Status
Awaiting Analysis
Published
Oct 29, 2026, 5:18 PM
Modified
Oct 30, 2026, 7:37 PM
Severity
Moderate
Public date
Oct 29, 2026, 5:12 PM