Skip to main content

Botan CVE-2026-44378

| EUVDEUVD-2026-32582 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-05-27 security-advisories@github.com
6.9
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify network-exposed service using Botan for ASN.1 parsing
  2. Delivery
    Craft BER payload with specific indefinite-length encoding patterns
  3. Exploit
    Submit payload to parser endpoint (e.g., TLS handshake, certificate upload, CMS decode)
  4. Execution
    Trigger quadratic CPU consumption in BER parser
  5. Persist
    Repeat or amplify to exhaust CPU resources
  6. Impact
    Deny service to legitimate users

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

The vulnerability is triggered when the application passes externally-supplied BER-encoded data to Botan's parser, specifically data containing particular patterns of indefinite-length encodings. No authentication is required (CVSS PR:N confirms unauthenticated exploitation). The attack is fully remote (AV:N) with low complexity (AC:L) and no user interaction (UI:N), meaning any network-reachable Botan-based service that processes attacker-influenced ASN.1 input is exposed. Exploitation is limited to denial of service - there is no code execution, privilege escalation, or data disclosure path. The condition that limits risk: applications that only process BER/DER data generated internally or from trusted, authenticated sources are not practically exploitable. Services that enforce strict input size caps may also limit the quadratic blowup to sub-impactful levels.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms unauthenticated remote exploitation with no prerequisites beyond network reachability and no user interaction required, making automated scanning and exploitation straightforward. However, impact is narrowly scoped to local availability (VA:L) with no confidentiality or integrity consequences, reflecting a CPU exhaustion scenario rather than data compromise or code execution. No EPSS score was provided in the input data, preventing quantitative exploitation likelihood comparison. The vulnerability is not listed in CISA KEV and no public exploit code exists at time of analysis, indicating this is not currently under active widespread attack. Real-world priority is moderate: applications that parse untrusted BER/DER input from the network (e.g., TLS certificate validation, S/MIME parsing, OCSP responses) face genuine DoS exposure, while those processing only internally-generated or trusted data face negligible risk. The low availability impact score (VA:L rather than VA:H) suggests the quadratic behavior is resource-intensive but may not instantly crash services on small inputs.

Exploit ScenarioDerived

An attacker sends a crafted BER-encoded payload - such as a malformed X.509 certificate during a TLS handshake or a manipulated CMS/PKCS#7 message - to a service built on Botan for cryptographic parsing. The payload contains deliberately nested or repeated indefinite-length encoding patterns that cause the parser to perform quadratic work relative to input size. By sending multiple such payloads concurrently or in rapid succession, the attacker drives CPU utilization to capacity, degrading or denying service to legitimate users. No public proof-of-concept code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 27, 2026

Quadratic-complexity denial of service in Botan's BER parser affects all versions prior to 3.12.0, allowing unauthenticated remote attackers to exhaust CPU resources by submitting crafted ASN.1 data. The parser accepted indefinite-length encodings even in structures required to use DER (which explicitly prohibits them), and specific patterns of such encodings trigger O(n²) algorithmic behavior. No active exploitation has been confirmed (not in CISA KEV) and no public exploit code has been identified at time of analysis.

RemediationAI

Upgrade Botan to version 3.12.0 or later, which fixes the issue by enforcing rejection of indefinite-length encodings in DER-required parsing contexts and resolving the quadratic complexity. The vendor advisory at https://github.com/randombit/botan/security/advisories/GHSA-7q2v-3g27-6g3j provides authoritative patch guidance. Patch version 3.12.0 is confirmed by the vendor advisory. If immediate upgrade is not feasible, restrict the application so that BER/DER data is only accepted from authenticated or trusted sources, reducing the unauthenticated attack surface. Additionally, impose strict size limits on ASN.1 inputs at the application or network boundary (e.g., cap certificate or CMS message size) to bound worst-case parser runtime; note this is a partial mitigation that does not eliminate the quadratic behavior. Rate-limiting connections or requests that trigger certificate or ASN.1 parsing can further reduce DoS blast radius but introduces latency trade-offs for legitimate high-volume use cases.

Affected VersionsENISA

Botan < 3.12.0

Affected Packages

euvd botan fix: 3.12.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Botan is a widely used C++ cryptography library implementing TLS, X.509, PKCS structures, and related protocols. BER (Basic Encoding Rules) and DER (Distinguished Encoding Rules) are ASN.1 serialization formats foundational to PKI and cryptographic messaging; DER is a strict, canonical subset of BER that explicitly disallows indefinite-length encodings to ensure deterministic parsing. The vulnerability (CWE-407: Inefficient Algorithmic Complexity) arises because Botan's BER parser did not enforce the DER prohibition on indefinite-length encodings in contexts where only DER is valid, and the parsing logic for certain patterns of these encodings scales quadratically with input size rather than linearly. Affected versions are all Botan releases below 3.12.0, as confirmed by EUVD-2026-32582 listing 'Botan < 3.12.0'. No CPE strings were supplied in the source data.

Know when Botan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
May 27, 2026 - 19:46 EUVD

DescriptionCVE.org

Botan is a C++ cryptography library. Prior to 3.12.0, certain patterns of indefinite length encodings in BER data could cause quadratic behavior in the parser, resulting in a denial of service. Such BER encodings were accepted even in structures which are required to be encoded as DER, which prohibits indefinite length encodings. This vulnerability is fixed in 3.12.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Botan

View all
CVE-2016-2195 CRITICAL
9.8 May 13

Integer overflow in the PointGFp constructor in Botan before 1.10.11 and 1.11.x before 1.11.27 allows remote attackers t

CVE-2016-2196 CRITICAL
9.8 May 13

Heap-based buffer overflow in the P-521 reduction function in Botan 1.11.x before 1.11.27 allows remote attackers to cau

CVE-2017-2801 MEDIUM POC
6.5 May 24

A programming error exists in a way Randombit Botan cryptographic library version 2.0.1 implements x500 string compariso

CVE-2024-50383 MEDIUM POC
5.9 Oct 23

Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/d

CVE-2024-50382 MEDIUM POC
5.9 Oct 23

Botan before 3.6.0, when certain LLVM versions are used, has compiler-induced secret-dependent control flow in lib/utils

CVE-2021-40529 MEDIUM POC
5.9 Sep 06

The ElGamal implementation in Botan through 2.18.1, as used in Thunderbird and other products, allows plaintext recovery

CVE-2018-12435 MEDIUM POC
5.9 Jun 15

Botan 2.5.0 through 2.6.0 before 2.7.0 allows a memory-cache side-channel attack on ECDSA signatures, aka the Return Of

CVE-2015-7826 CRITICAL
9.8 Apr 10

botan 1.11.x before 1.11.22 improperly handles wildcard matching against hostnames, which might allow remote attackers t

CVE-2016-6878 CRITICAL
9.8 Apr 10

The Curve25519 code in botan before 1.11.31, on systems without a native 128-bit integer type, might allow attackers to

CVE-2016-9132 CRITICAL
9.8 Jan 30

In Botan 1.8.0 through 1.11.33, when decoding BER data an integer overflow could occur, which would cause an incorrect l

CVE-2021-24115 CRITICAL
9.8 Feb 22

In Botan before 2.17.3, constant-time computations are not used for certain decoding and encoding operations (base32, ba

CVE-2018-9127 CRITICAL
9.8 Apr 02

Botan 2.2.0 - 2.4.0 (fixed in 2.5.0) improperly handled wildcard certificates and could accept certain certificates as v

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise Workstation Extension 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy