Uncontrolled Recursion Affecting org.bouncycastle:bcprov-debug-jdk15on package, versions [1.70,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGBOUNCYCASTLE-18512328
  • published3 Aug 2026
  • disclosed3 Aug 2026
  • creditUnknown

Introduced: 3 Aug 2026

NewCVE-2026-59645  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

There is no fixed version for org.bouncycastle:bcprov-debug-jdk15on.

Overview

org.bouncycastle:bcprov-debug-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Uncontrolled Recursion in the OERInputStream.parse(Element) method, which processes the SEQ, CHOICE, and Supplier children of an IEEE 1609.2 structure recursively without enforcing a depth limit. An attacker can crash the parsing thread or the JVM with a StackOverflowError by supplying a roughly 2 to 4 KB IEEE 1609.2 message containing hundreds of nested signedData payloads to the ETSISignedData(byte[]) or ETSIEncryptedData(byte[]) entry points, which parse untrusted input before signature verification. Exploitation reaches the recursion pre-verification because the schema's self-referential mayRecurse cycle (Ieee1609Dot2Data back to itself) is only validated in test tooling, not at runtime, so it requires only that the application pass untrusted IEEE 1609.2 data to those entry points.

CVSS Base Scores

version 4.0
version 3.1