Skip to main content
VulnerabilityPublished Updated

CVE-2024-34703: randombit botan · Asymmetric Resource Consumption

Affects randombit botanSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High : upgrade to 3.3.0 or 2.19.4 soon.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.3.0, 2.19.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Jun 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade randombit/botan to 3.3.0 or 2.19.4.

Affected software

ProductAffectedFixed in
GitHubrandombit/botanpkg:github/randombit/botanOther threatsAffected
  • <2.19.4
  • <3.3.0
Fixed in
  • 2.19.4
  • 3.3.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The primary mitigation is to upgrade Botan to version 3.3.0 or 2.19.4 or later, where the vulnerability is patched by limiting prime parameter sizes and deprecating explicit elliptic curve parameter encoding. Organizations should audit their software dependencies to identify Botan usage, especially in cryptographic modules handling X.509 certificates. If upgrading is not immediately feasible, implement network-level protections such as filtering or blocking suspicious certificates with unusually large parameters, though this may be challenging without deep packet inspection capabilities. Monitoring CPU usage and establishing anomaly detection for cryptographic services can help identify exploitation attempts. Additionally, consider disabling support for explicit elliptic curve parameter encoding if configurable, as this feature is deprecated and the attack vector. Coordinate with software vendors and maintainers to ensure timely patch deployment. Finally, review certificate validation policies to reject certificates with non-standard or suspicious parameters.

Description

Botan is a C++ cryptography library. X.509 certificates can identify elliptic curves using either an object identifier or using explicit encoding of the parameters. Prior to versions 3.3.0 and 2.19.4, an attacker could present an ECDSA X.509 certificate using explicit encoding where the parameters are very large. The proof of concept used a 16Kbit prime for this purpose. When parsing, the parameter is checked to be prime, causing excessive computation. This was patched in 2.19.4 and 3.3.0 to allow the prime parameter of the elliptic curve to be at most 521 bits. No known workarounds are available. Note that support for explicit encoding of elliptic curve parameters is deprecated in Botan.

References

Community reviews

Loading reviews…