Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-58059: CWE-407 Inefficient Algorithmic Complexity in Legion of the Bouncy Castle Inc. BC-JAVA

0
High
VulnerabilityCVE-2026-58059cvecve-2026-58059cwe-407
Published: 08/03/2026 (08/03/2026, 02:41:30 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →cve
bcprov
pkg:github/bcprov
Affected versions
<1.85
GitHub Actionsmore threats →cve
bcprov-lts8on
pkg:github/bcprov-lts8on
Affected versions
>=2.73.0 <2.73.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/03/2026, 03:03:25 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses