1. CVE archive
  2. 2026
  3. CVE-2026-59645

CVE-2026-59645

7.5 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – High

Description

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).

Affected products

VendorProductVersionPlatform
bouncycastle bc-java < 1.85 –
bouncycastle bcutil-fips >= 2.0.2 < 2.0.7 –
bouncycastle bcutil-fips >= 2.1.4 < 2.1.7 –
bouncycastle bouncy castle for java lts <= 2.73.11 –
All 28 Bouncycastle Bouncy Castle For Java Lts vulnerabilities

Vulnerability type

CWE-674 Uncontrolled Recursion

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Impact on systems

ScopeImpact
Availability DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)
Resources including CPU, memory, and stack memory could be rapidly consumed or exhausted, eventually leading to an exit or crash.
Confidentiality Read Application Data
In some cases, an application's interpreter might kill a process or thread that appears to be consuming too many resources, such as with PHP's memory_limit setting. When the interpreter kills the process/thread, it might report an error containing detailed information such as the application's installation path.

How to prevent it

Implementation Ensure that an end condition will be reached under all logic conditions. The end condition may include checking against the depth of recursion and exiting with an error if the recursion goes too deep. The complexity of the end condition contributes to the effectiveness of this action.
Implementation Increase the stack size.

All 665 CWE-674 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org