Skip to main content

Bouncy Castle Java CVE-2026-59645

| EUVDEUVD-2026-52029 HIGH
Uncontrolled Recursion (CWE-674)
2026-08-03 bcorg GHSA-mvf5-ghmw-pmr7
8.7
CVSS 4.0 · Vendor: bcorg
View

Attack ChainAIDerived

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

  1. Access
    Craft self-referential IEEE 1609.2 OER payload
  2. Delivery
    Deliver to network-exposed parsing endpoint
  3. Exploit
    OERInputStream accepts input pre-signature-verification
  4. Execution
    Cyclic schema drives unbounded recursive descent
  5. Persist
    JVM StackOverflowError terminates parsing thread
  6. Impact
    Service availability disrupted

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires that the target application uses Bouncy Castle's OERInputStream to parse IEEE 1609.2 or ETSI TS 103 097 V2X message structures from attacker-controlled input, and that this parsing occurs before signature verification - which is the standard operational flow in the affected library. Applications specifically configured to receive and decode V2X messages from untrusted sources (V2X PKI enrollment authorities, roadside units, certificate management systems, DSRC/C-V2X receivers) are directly vulnerable with no additional preconditions. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms no authentication and no complex preconditions. Limiting factors: applications that only process OER data from sources they have already authenticated via an out-of-band trust mechanism face substantially reduced exposure; applications that do not call the OER parser at all (i.e., do not use Bouncy Castle for IEEE 1609.2 message parsing) are entirely unaffected regardless of which Bouncy Castle version they run.

Impact

The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VA:H) accurately characterises the threat: network-reachable, unauthenticated, low complexity, high availability impact, no confidentiality or integrity effect. This is not a high-CVSS-but-low-real-risk case - the combination of no required authentication, pre-verification reachability, and a small crafted payload (few KB) makes exploitation straightforward for any attacker who can deliver OER data to a vulnerable endpoint. EPSS score is not included in the available intelligence and cannot be assessed. This CVE is not currently listed in the CISA KEV catalog - no confirmed active exploitation at time of analysis. No public exploit code has been identified, though the detailed patch commit provides sufficient implementation detail for a researcher to reproduce all three DoS vectors. Real-world risk is concentrated in V2X infrastructure, automotive PKI systems, roadside units, and on-board units that process untrusted IEEE 1609.2 messages; general-purpose Java applications that do not use OER parsing are unaffected. For in-scope deployments, this is a genuine priority: a small crafted message can crash the parsing JVM with no privileges required.

Exploit ScenarioDerived

An unauthenticated remote attacker sends a few kilobytes of crafted IEEE 1609.2 OER-encoded data - with a self-referential Ieee1609Dot2Data structure nested inside its own SignedData payload - to any network-exposed endpoint that passes untrusted input to Bouncy Castle's OERInputStream before signature verification. The parser enters unbounded recursive descent across the cyclic schema, exhausting the JVM thread stack and throwing StackOverflowError, which crashes the parsing thread or the entire JVM process. No public exploit code has been identified at time of analysis, but the patch commit's release notes describe the attack precisely and provide sufficient detail to reproduce it.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 03, 2026

Unbounded recursion in Bouncy Castle's OER (Octet Encoding Rules) parser enables remote unauthenticated denial-of-service against any Java application processing IEEE 1609.2 V2X messages. Because the IEEE 1609.2 schema is cyclic - an Ieee1609Dot2Data structure can nest inside its own SignedData payload - a few kilobytes of crafted input drive the parser into unbounded recursive descent, terminating in a JVM StackOverflowError. Critically, parsing occurs before signature verification, so no authentication or trust relationship is needed to trigger the crash. No public exploit has been identified at time of analysis, but the patch commit exposes two additional heap-exhaustion vectors alongside the primary recursion flaw, all reachable from the same pre-verification code path.

RemediationAI

Upgrade to Bouncy Castle for Java 1.85 or later, Bouncy Castle LTS 2.73.12 or later, or bcutil-fips 2.0.7 (2.0.x series) or 2.1.7 (2.1.x series). The upstream fix commit is 822b2478b131097368a56290f5728e28dd042989 (https://github.com/bcgit/bc-java/commit/822b2478b131097368a56290f5728e28dd042989); note that this is a confirmed commit but patched release artifact availability should be verified against the vendor advisory at https://github.com/bcgit/bc-java/wiki/CVE-2026-59645. If immediate upgrade is not feasible, restrict or eliminate processing of IEEE 1609.2 OER data from untrusted network sources at the application or network layer - for example, enforce that only cryptographically pre-authenticated V2X messages are passed to OERInputStream; trade-off is that this may break reception of unauthenticated broadcast V2X messages, which is by design in some DSRC deployments. Placing a JVM thread-stack-size limit (-Xss) at the OS level will not prevent exploitation of the heap-allocation vectors also patched in this commit. SUSE-tagged advisory consumers should monitor distribution-level package updates.

Affected VersionsENISA

BC-FJA 2.1.0 <2.1.7
BC-FJA 2.0.0 <2.0.7
BC-JAVA 1.70 <1.85
BC-LTS-JAVA 2.73.0 <2.73.12

Affected Packages

euvd bc_fja fix: 2.0.7, 2.1.7
euvd bc_java fix: 1.85
euvd bc_lts_java fix: 2.73.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in euvd

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

Technical ContextAI · show details

The vulnerable component is OERInputStream in Bouncy Castle's util library, which implements Octet Encoding Rules parsing for IEEE 1609.2 (ETSI TS 103 097) structures used in V2X (vehicle-to-everything) communications. CWE-674 (Uncontrolled Recursion) is the root cause: parse() called itself with no nesting-depth bound, and the cyclic nature of the IEEE 1609.2 schema means a self-referential message can drive recursive descent indefinitely until the JVM thread stack exhausts. The fix (commit 822b2478b131097368a56290f5728e28dd042989) introduces a hard depth cap of 256 (field maxNestingDepth) threaded across the parseOpenType boundary. The commit also reveals two related allocation-based DoS vectors in the same parser: (1) SEQUENCE-OF element count decoded directly from attacker-controlled bytes without bounding against remaining input, allowing ~2^31 object allocations; (2) the open-type EXTENSION branch allocated new byte[length] from an attacker-controlled long-form length field, bypassing the maxByteAllocation cap applied everywhere else, enabling immediate OutOfMemoryError. All three vectors are reachable from the same pre-verification OER parsing path. Affected CPEs cover bc-java (cpe:2.3:a:legion_of_the_bouncy_castle_inc.:bc-java:*), bc-lts-java (cpe:2.3:a:legion_of_the_bouncy_castle_inc.:bc-lts-java:*), and bc-fja (cpe:2.3:a:legion_of_the_bouncy_castle_inc.:bc-fja:*).

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

Vendor (bcorg) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-reachable with no authentication or privileges required; sole impact is availability (DoS via stack exhaustion); no confidentiality or integrity effect; scope unchanged as crash is confined to the parsing JVM.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 7.5 HIGH

Primary rating from Vendor (bcorg).

CVSS VectorVendor: bcorg

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
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

In Bouncy Castle for Java before 1.85, OER parser recurses without depth limit on self-referential IEEE 1609.2 schema. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bcutil-fips 2.0.7 (2.0.X series) and 2.1.7 (2.1.X series).

Executive ViewAI

Why It Matters

Bouncy Castle's OER parser is vulnerable to remote denial-of-service attacks that crash Java-based vehicle-to-infrastructure (V2X) systems without requiring authentication. Any organization deploying Bouncy Castle to process V2X communications faces immediate operational risk of unexpected system outages that could disrupt transportation infrastructure and safety-critical features.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
widely used Java cryptography library, not universally deployed
Data Quality
8 sources
Confidence: High
EUVD 🇯🇵JVN 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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
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

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