Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify network-exposed service using Botan for ASN.1 parsing
-
DeliveryCraft BER payload with specific indefinite-length encoding patterns
-
ExploitSubmit payload to parser endpoint (e.g., TLS handshake, certificate upload, CMS decode)
-
ExecutionTrigger quadratic CPU consumption in BER parser
-
PersistRepeat or amplify to exhaust CPU resources
-
ImpactDeny 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Integer overflow in the PointGFp constructor in Botan before 1.10.11 and 1.11.x before 1.11.27 allows remote attackers t
Heap-based buffer overflow in the P-521 reduction function in Botan 1.11.x before 1.11.27 allows remote attackers to cau
A programming error exists in a way Randombit Botan cryptographic library version 2.0.1 implements x500 string compariso
Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/d
Botan before 3.6.0, when certain LLVM versions are used, has compiler-induced secret-dependent control flow in lib/utils
The ElGamal implementation in Botan through 2.18.1, as used in Thunderbird and other products, allows plaintext recovery
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
botan 1.11.x before 1.11.22 improperly handles wildcard matching against hostnames, which might allow remote attackers t
The Curve25519 code in botan before 1.11.31, on systems without a native 128-bit integer type, might allow attackers to
In Botan 1.8.0 through 1.11.33, when decoding BER data an integer overflow could occur, which would cause an incorrect l
In Botan before 2.17.3, constant-time computations are not used for certain decoding and encoding operations (base32, ba
Botan 2.2.0 - 2.4.0 (fixed in 2.5.0) improperly handled wildcard certificates and could accept certain certificates as v
Same weakness CWE-407 – Inefficient Algorithmic Complexity
View allSame technique Denial Of Service
View allVendor 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 |
| SUSE Linux Enterprise Server 12 SP5 | Fixed |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Desktop 12 | Fixed |
| SUSE Linux Enterprise Desktop 12 SP1 | Fixed |
| SUSE Linux Enterprise Desktop 12 SP2 | Fixed |
| SUSE Linux Enterprise Desktop 12 SP3 | Fixed |
| SUSE Linux Enterprise Desktop 12 SP4 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP2 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP3 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP4 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP5 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP3 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 12 | Fixed |
| SUSE Linux Enterprise Server 12 SP1 | Fixed |
| SUSE Linux Enterprise Server 12 SP2 | Fixed |
| SUSE Linux Enterprise Server 12 SP3 | Fixed |
| SUSE Linux Enterprise Server 12 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP2 | Fixed |
| SUSE Linux Enterprise Server 15 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP1 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP2 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP3 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP2 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP3 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP4 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP5 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP6 | Fixed |
| openSUSE Leap 15.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
EUVD-2026-32582
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB