Description
In Bouncy Castle for Java before 1.85, Quadratic-time escaping when stringifying X.500 distinguished names. 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).
Published: 2026-08-03
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An algorithmic complexity flaw in Bouncy Castle for Java allows adversaries to cause the library to perform a quadratic‑time escaping operation when converting X.500 distinguished names to strings. The excessive time and memory consumption can drain system resources, potentially leading to denial of service. This weakness is categorized as CWE‑407, indicating a performance flaw rather than a classic security boundary breach.

Affected Systems

Bouncy Castle products are affected: the standard Java library (BC-JAVA) versions older than 1.85, the long‑term support Java library (BC-LTS-JAVA) versions older than 2.73.12, and the FIPS‑compliant Java library (BC-FJA) versions older than 1.0.2.7, 2.0.2, or 2.1.3. Systems using these libraries should verify their implementation version and ensure they have not deployed an affected release.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity issue. While the EPSS score is not available, the lack of a known KEV listing does not diminish the risk for environments that process untrusted distinguished names. Attackers could trigger the DoS by supplying crafted certificates or directory entries that include complex distinguished names, but actual exploitation requires the affected library to be present in the target. The risk remains significant where the vulnerable library is in use and the application processes external X.500 data.

Generated by OpenCVE AI on August 3, 2026 at 08:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the BC‑JAVA library to version 1.85 or later.
  • Upgrade the BC‑LTS‑JAVA library to version 2.73.12 or later.
  • Upgrade the BC‑FJA library to a release newer than 1.0.2.7, 2.0.2, or 2.1.3.
  • If an upgrade is not immediately possible, restrict or sandbox the processing of X.500 distinguished names to limit the potential impact of resource exhaustion.

Generated by OpenCVE AI on August 3, 2026 at 08:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 03 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java
Vendors & Products Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java

Mon, 03 Aug 2026 06:45:00 +0000


Mon, 03 Aug 2026 02:45:00 +0000

Type Values Removed Values Added
Description In Bouncy Castle for Java before 1.85, Quadratic-time escaping when stringifying X.500 distinguished names. 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).
Title Quadratic-time escaping when stringifying X.500 distinguished names
Weaknesses CWE-407
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

Legion Of The Bouncy Castle Inc. Bc-fja Bc-java Bc-lts-java
cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-08-03T15:32:46.729Z

Reserved: 2026-06-28T01:21:46.334Z

Link: CVE-2026-58059

cve-icon Vulnrichment

Updated: 2026-08-03T15:32:41.018Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-08-03T03:16:45.137

Modified: 2026-08-04T14:50:12.360

Link: CVE-2026-58059

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:52:13Z

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity