Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted ASN.1 with 256+ nested SEQUENCEs
-
DeliveryTarget accepts input for lazy parse
-
ExploitShallow outer parse passes depth guard
-
ExecutionApplication triggers full tree traversal
-
PersistDepth guard resets on each LazyEncodedSequence.force()
-
ImpactStackOverflowError crashes parsing thread
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Exploitation requires that the application uses Bouncy Castle in lazy ASN.1 parsing mode (ASN1InputStream instantiated with lazyEvaluate=true) and subsequently performs a full tree traversal of the parsed object - such as calling hashCode(), equals(), re-encoding, or iterating via getObjects(). This lazy mode is commonly used internally by Bouncy Castle when processing large ASN.1 structures for performance. The crafted input must contain more nested SEQUENCE levels than the configured depth limit (default 64) to trigger the guard bypass. Applications that parse ASN.1 eagerly (lazyEvaluate=false) are not vulnerable to this specific flaw. No authentication is required when the affected ASN.1 parsing endpoint is network-facing (e.g., TLS certificate processing, CMS verification APIs). Exploitation is limited to availability impact - a StackOverflowError - with no confidentiality or integrity consequence confirmed. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VA:H) accurately reflects a low-complexity, unauthenticated, network-reachable denial-of-service with no confidentiality or integrity component. Real-world risk is moderate-to-high for applications that process untrusted ASN.1 data - TLS handshake certificate chains, OCSP responses, signed CMS/PKCS#7 messages, or any protocol that submits ASN.1 to Bouncy Castle - because the attack requires no special authentication and the input vector is commonly exposed at network boundaries. Applications that pass only internally generated ASN.1 to Bouncy Castle have substantially reduced exposure. The 'Information Disclosure' tag present in the source metadata is inconsistent with the CVSS vector (VC:N/VI:N/VA:H) and appears to be a tagging error; no confidentiality impact is indicated by the authoritative CVSS assessment. No EPSS score was supplied and CISA KEV status is unconfirmed, so exploitation likelihood must be inferred from the vulnerability class: ASN.1 parsing DoS flaws in widely deployed cryptographic libraries have historically attracted exploit development. |
| Exploit ScenarioDerived | An attacker submits a crafted X.509 certificate or CMS-signed message containing 256 or more nested SEQUENCE elements to a server that uses Bouncy Castle for TLS certificate validation or signature verification. The initial lazy parse at the network layer succeeds because only the outermost level is decoded eagerly. When the application subsequently validates the certificate chain or computes a signature, Bouncy Castle traverses the full ASN.1 tree, and each LazyEncodedSequence.force() call resets the depth guard, recursing deeper until a StackOverflowError crashes the certificate-processing thread or the entire JVM process. The vendor's regression test (testHeavilyLazyNestedSequence in ASN1SequenceParserTest.java) demonstrates that 256 levels of nesting reliably reproduces the condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 03, 2026
Uncontrolled recursion in Bouncy Castle for Java's lazy ASN.1 parser enables remote unauthenticated denial of service across all three library release lines (bc-java, bc-lts-java, and bc-fja FIPS). When a LazyEncodedSequence is forced during tree traversal, it resets the nesting-depth guard to its configured maximum instead of continuing with the remaining depth budget, allowing crafted deeply-nested ASN.1 structures to bypass StreamUtil's recursion limit and trigger a StackOverflowError. No public exploit has been identified at time of analysis, but any Java application accepting externally-supplied ASN.1 data - TLS certificates, CMS signatures, PKCS structures - is potentially exposed without authentication.
RemediationAI
Upgrade to the patched releases as appropriate for your dependency: bc-java 1.85 or later, bc-lts-java 2.73.12 or later, or BC-FJA 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series), or 2.1.3 (2.1.X series). The upstream fix is confirmed in commit https://github.com/bcgit/bc-java/commit/77454da9b3dcaaa2991412d1c3c1a6e1a338ff84 and the vendor advisory is at https://github.com/bcgit/bc-java/wiki/CVE-2026-13506. For environments where an immediate upgrade is not feasible, a compensating control is to enforce a maximum ASN.1 nesting depth and structure size at the application boundary before passing data to Bouncy Castle - rejecting any DER/BER input exceeding a configurable depth threshold (e.g., 32 levels). This adds marginal parsing overhead and may reject unusual but legitimate deeply nested structures; operators should tune the limit against their actual use case. If the application instantiates ASN1InputStream directly with lazyEvaluate=true, switching to eager parsing (lazyEvaluate=false) eliminates this specific code path but may reduce performance for large ASN.1 structures.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 7 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the ASN.1 parsing subsystem of the Bouncy Castle Java cryptography library, specifically across ASN1InputStream, LazyEncodedSequence, and LazyConstructionEnumeration (CPEs: cpe:2.3:a:legion_of_the_bouncy_castle_inc.:bc-java, bc-lts-java, bc-fja). CWE-674 (Uncontrolled Recursion) precisely characterizes the root cause: in lazy parsing mode, Bouncy Castle defers full SEQUENCE deserialization until the structure is accessed ('forced'). The defect is that LazyEncodedSequence.force() and getObjects() previously instantiated a new ASN1InputStream with the depth counter reset to the library's global maximum (typically 64) rather than propagating the remaining depth budget from the parent parse context. An attacker can craft a structure with, for example, 256 nested SEQUENCEs - passing the shallow outer parse - then trigger a full tree walk (via hashCode(), equals(), re-encoding, or explicit force()), causing each lazy materialization to reset the counter and allow arbitrarily deep recursion until JVM stack exhaustion. The fix (bcgit/bc-java@77454da) threads a contentsDepth field through LazyEncodedSequence into LazyConstructionEnumeration and ASN1InputStream so the depth budget is continuously decremented across all lazy force() calls, matching the behavior of the eager parse path.
Know when Java 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:H/SC:N/SI:N/SA:N/U:Amber
Network-reachable DoS via crafted ASN.1 requires no authentication or interaction; impact is availability-only with scope unchanged.
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (bcorg).
CVSS VectorVendor: bcorg
DescriptionCVE.org
In Bouncy Castle for Java before 1.85, Lazy ASN.1 sequence forcing resets nesting-depth guard. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).
Blast Radius
ecosystem impact- 16 maven packages depend on org.bouncycastle:bc-fips (6 direct, 10 indirect)
- 13 maven packages depend on org.bouncycastle:bcprov-jdk15to18 (3 direct, 10 indirect)
- 5,434 maven packages depend on org.bouncycastle:bcprov-jdk18on (559 direct, 4,900 indirect)
- 52 maven packages depend on org.bouncycastle:bcprov-lts8on (9 direct, 46 indirect)
Ecosystem-wide dependent count for version 2.0.0 and other introduced versions.
Executive ViewAI
Bouncy Castle for Java contains a remote denial-of-service vulnerability affecting all three active release lines (bc-java, bc-lts-java, bc-fja FIPS) that can be exploited without authentication to crash systems processing cryptographic structures. Organizations using Bouncy Castle for TLS, certificate validation, or digital signature verification face immediate risks to service availability and operational continuity. The vulnerability requires no special privileges or user interaction, making it exploitable from any network-facing endpoint that processes untrusted ASN.1 data.
Apply vendor patch.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
Same weakness CWE-674 – Uncontrolled Recursion
View allSame technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| openSUSE Leap 16.0 | Fixed |
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| openSUSE Leap 16.0 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Manager Proxy 4.3 | Affected |
| SUSE Manager Retail Branch Server 4.3 | Affected |
| SUSE Manager Server 4.3 | Affected |
| SUSE Enterprise Storage 7 | Affected |
| SUSE Enterprise Storage 7.1 | Affected |
| SUSE Linux Enterprise Desktop 15 SP2 | Affected |
| SUSE Linux Enterprise Desktop 15 SP3 | Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP2 | Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP2 | Affected |
| SUSE Linux Enterprise Real Time 15 SP3 | Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP2 | Affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP3 | Affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Manager Proxy 4.1 | Affected |
| SUSE Manager Proxy 4.2 | Affected |
| SUSE Manager Retail Branch Server 4.1 | Affected |
| SUSE Manager Retail Branch Server 4.2 | Affected |
| SUSE Manager Server 4.1 | Affected |
| SUSE Manager Server 4.2 | Affected |
| openSUSE Leap 15.3 | Affected |
| openSUSE Leap 15.4 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-52139
GHSA-qp49-qgx5-5m26
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB