CVE-2026-44378
Botan vulnerability analysis and mitigation

Overview

CVE-2026-44378 is a denial-of-service vulnerability in Botan, a C++ cryptography library, caused by quadratic complexity when parsing certain BER indefinite length encodings. Prior to version 3.12.0, the parser accepted indefinite length encodings even in structures required to use DER encoding (which prohibits such encodings), allowing an attacker to trigger excessive CPU consumption. The vulnerability was published on May 27, 2026, and fixed in Botan 3.12.0. It carries a CVSS v3.1 base score of 7.5 (High) and a CVSS v4.0 base score of 6.9 (Medium) (GitHub Advisory).

Technical details

The root cause is classified as CWE-407 (Inefficient Algorithmic Complexity): certain patterns of indefinite length encodings in BER-encoded ASN.1 data trigger quadratic worst-case behavior in Botan's parser. Because the library accepted indefinite length encodings even in DER-required contexts, an attacker can craft malicious ASN.1 structures (e.g., X.509 certificates, OCSP responses) that cause the parser to perform an exponentially growing number of operations relative to input size. No authentication or user interaction is required — any network-accessible service that processes attacker-supplied ASN.1 data is potentially vulnerable. The vulnerability was discovered by researcher Yt Sun and reported to the Botan project (GitHub Advisory).

Impact

Successful exploitation results in a CPU-based denial of service, causing the affected application to become unresponsive or crash. There is no impact on confidentiality or integrity — only availability is affected. Any service that processes attacker-controlled ASN.1 data (such as TLS certificate validation, OCSP response parsing, or other PKI operations) using a vulnerable version of Botan is at risk (GitHub Advisory).

Exploitation steps

  1. Identify target: Locate a network-accessible service that uses Botan (version < 3.12.0) to parse ASN.1-encoded data, such as a TLS server performing certificate validation or an OCSP responder.
  2. Craft malicious BER data: Construct an ASN.1 structure (e.g., an X.509 certificate or OCSP response) containing nested or repeated indefinite length encodings in fields that are normally required to use DER encoding.
  3. Submit the payload: Send the crafted BER-encoded data to the target service (e.g., present the malicious certificate during a TLS handshake, or submit it to a certificate parsing endpoint).
  4. Trigger quadratic parsing: The Botan BER parser processes the indefinite length encodings with quadratic complexity, causing CPU exhaustion and rendering the service unresponsive or crashing it (GitHub Advisory).

Indicators of compromise

  • Network: Unusual or repeated connections to services that process ASN.1/X.509 data (TLS endpoints, OCSP responders) from unexpected sources; large or malformed certificate/OCSP payloads in network captures.
  • Process: Sustained high CPU utilization by the application process using Botan, particularly during TLS handshake or certificate validation phases.
  • Logs: Application logs showing timeouts, crashes, or errors during ASN.1/BER parsing; repeated failed TLS handshakes or certificate validation errors from the same source IP.

Mitigation and workarounds

The primary remediation is to upgrade Botan to version 3.12.0 or later, which enforces strict DER encoding requirements and rejects indefinite length encodings in DER-required contexts. As a temporary workaround, operators can implement input validation and limits on BER data complexity or parsing time at the application or network layer, and consider running parsers with CPU/memory resource constraints. Services that do not need to accept externally supplied ASN.1 data should restrict such input at the network perimeter (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Botan vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34580CRITICAL9.3
  • Botan logoBotan
  • botan3-doc
NoYesApr 07, 2026
CVE-2026-35582HIGH8.8
  • Java logoJava
  • gov.nsa.emissary:emissary
NoYesApr 18, 2026
CVE-2026-34582HIGH8.7
  • Botan logoBotan
  • Botan-doc
NoYesApr 07, 2026
CVE-2026-44378MEDIUM6.9
  • Botan logoBotan
  • botan3
NoYesMay 27, 2026
CVE-2026-32884MEDIUM5.9
  • Botan logoBotan
  • botan1.10
NoYesMar 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management