CVE-2026-58059 Details
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).
A denial-of-service vulnerability has been identified in Bouncy Castle for Java versions prior to 1.85, as well as in Bouncy Castle for Java LTS versions prior to 2.73.12 and Bouncy Castle for Java FIPS (BC-FJA) versions prior to 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series). The issue arises from quadratic-time escaping when processing X.500 distinguished names, which can lead to CPU exhaustion. This vulnerability is exploitable by supplying a large RDN, such as a long PrintableString of commas, which is then processed by functions that stringify the X.500 name, such as X500Name.toString(), equals(), and hashCode(). The resulting output is unchanged, but the processing time can increase significantly, pinning a CPU core and amplifying the denial-of-service effect on otherwise normal ASN.1 string sizes.
Users can upgrade to Bouncy Castle for Java version 1.85 or later, or to Bouncy Castle for Java LTS version 2.73.12 or later. For Bouncy Castle for Java FIPS, versions 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series) are recommended.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/bcgit/bc-java/commit/7bf20eea8c1b71a4d3574b75ba20ccf26ffff36b | bcorg | Patch |
| https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9058059 | bcorg | Third Party AdvisoryPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-407 | Inefficient Algorithmic Complexity | bcorg |
Affected Products
| Product | Versions |
|---|---|
| bouncycastle bc-java | < 1.85 |
CPE
Remediation
| |
| bouncycastle bouncy castle for java lts | <= 2.73.11 |
CPE
Remediation
| |
| bouncycastle fips java api | >= 1.0.0, < 1.0.2.7 >= 2.0.0, < 2.0.2 >= 2.1.0, < 2.1.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 2, 2026 | Initial Analysis | [email protected] |
| Aug 3, 2026 | CVE Modified | CISA-ADP |
| Aug 3, 2026 | CVE Modified | bcorg |
| Aug 3, 2026 | New CVE Received | bcorg |