CVE-2026-58059: CWE-407 Inefficient Algorithmic Complexity in Legion of the Bouncy Castle Inc. BC-JAVA
CVE-2026-58059 is a high-severity vulnerability in Bouncy Castle for Java (BC-JAVA) involving inefficient algorithmic complexity. Specifically, it causes quadratic-time escaping when stringifying X.500 distinguished names. This affects versions before 1.85, and certain LTS and FIPS versions prior to specified fixed releases.
AI Analysis
Technical Summary
This vulnerability (CWE-407) in Legion of the Bouncy Castle Inc.'s BC-JAVA library results from inefficient algorithmic complexity during the escaping process of X.500 distinguished names. The issue causes operations to run in quadratic time, potentially leading to performance degradation or denial of service under certain conditions. Affected versions include BC-JAVA before 1.85, LTS versions from 2.73.0 up to but not including 2.73.12, and specific BC-FJA FIPS versions prior to 1.0.2.7, 2.0.2, and 2.1.3. No official patch or remediation level is currently documented in the provided data.
Potential Impact
The vulnerability can lead to significant performance issues due to quadratic-time complexity in string escaping, which may be exploited to cause denial of service by resource exhaustion. There are no known exploits in the wild as of the published date. The CVSS 4.0 score of 8.7 reflects a high impact with network attack vector, no privileges or user interaction required, and high vulnerability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or remediation level is provided in the available data, users should monitor the vendor's announcements for patches addressing this issue. Until a fix is available, consider mitigating exposure by limiting input sizes or usage scenarios involving X.500 distinguished name stringification if feasible.
CVE-2026-58059: CWE-407 Inefficient Algorithmic Complexity in Legion of the Bouncy Castle Inc. BC-JAVA
Description
CVE-2026-58059 is a high-severity vulnerability in Bouncy Castle for Java (BC-JAVA) involving inefficient algorithmic complexity. Specifically, it causes quadratic-time escaping when stringifying X.500 distinguished names. This affects versions before 1.85, and certain LTS and FIPS versions prior to specified fixed releases.
CVSS v4.0
Score 8.7high
Affected software
pkg:github/bcprov-lts8onRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CWE-407) in Legion of the Bouncy Castle Inc.'s BC-JAVA library results from inefficient algorithmic complexity during the escaping process of X.500 distinguished names. The issue causes operations to run in quadratic time, potentially leading to performance degradation or denial of service under certain conditions. Affected versions include BC-JAVA before 1.85, LTS versions from 2.73.0 up to but not including 2.73.12, and specific BC-FJA FIPS versions prior to 1.0.2.7, 2.0.2, and 2.1.3. No official patch or remediation level is currently documented in the provided data.
Potential Impact
The vulnerability can lead to significant performance issues due to quadratic-time complexity in string escaping, which may be exploited to cause denial of service by resource exhaustion. There are no known exploits in the wild as of the published date. The CVSS 4.0 score of 8.7 reflects a high impact with network attack vector, no privileges or user interaction required, and high vulnerability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or remediation level is provided in the available data, users should monitor the vendor's announcements for patches addressing this issue. Until a fix is available, consider mitigating exposure by limiting input sizes or usage scenarios involving X.500 distinguished name stringification if feasible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-06-28T01:21:46.334Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a700186bf32cb7a34d5cb08
Added to database: 08/03/2026, 02:48:38 UTC
Last enriched: 08/03/2026, 03:03:25 UTC
Last updated: 08/03/2026, 03:03:25 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.