In Bouncy Castle for Java before 1.85, Quadratic-time escaping when stringifying X.500 distinguished names. (CVE-2026-58059)
Bouncy Castle for Java versions before 1.85 and certain LTS and FIPS versions have a vulnerability causing quadratic-time escaping when stringifying X.500 distinguished names. This performance issue can lead to high resource consumption during processing. The vulnerability is identified as CWE-407 and is rated with high severity.
AI Analysis
Technical Summary
The vulnerability in Bouncy Castle for Java prior to version 1.85, including LTS versions before 2.73.12 and FIPS versions before bc-fips 1.0.2.7 (1.0.X), 2.0.2 (2.0.X), and 2.1.3 (2.1.X), involves quadratic-time escaping when stringifying X.500 distinguished names. This inefficiency can cause excessive CPU usage, potentially leading to denial-of-service conditions. The issue is categorized under CWE-407 (Improper Resource Management). No known exploits are reported in the wild, and no patch links are provided in the data.
Potential Impact
The vulnerability can cause high CPU resource consumption due to quadratic-time processing when escaping X.500 distinguished names. This may lead to denial-of-service conditions or degraded performance in applications using affected Bouncy Castle versions. No direct evidence of remote code execution or data breach is indicated.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or fix links are provided, users should monitor vendor communications for updates. Until a fix is available, consider limiting exposure to untrusted input that triggers X.500 distinguished name stringification or applying application-level resource controls to mitigate potential denial-of-service impact.
In Bouncy Castle for Java before 1.85, Quadratic-time escaping when stringifying X.500 distinguished names. (CVE-2026-58059)
Description
Bouncy Castle for Java versions before 1.85 and certain LTS and FIPS versions have a vulnerability causing quadratic-time escaping when stringifying X.500 distinguished names. This performance issue can lead to high resource consumption during processing. The vulnerability is identified as CWE-407 and is rated with high severity.
CVSS v4.0
Affected software
pkg:maven/org.bouncycastle/bcprov-jdk15onpkg:maven/org.bouncycastle/bcprov-jdk15on-ltsRun 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
The vulnerability in Bouncy Castle for Java prior to version 1.85, including LTS versions before 2.73.12 and FIPS versions before bc-fips 1.0.2.7 (1.0.X), 2.0.2 (2.0.X), and 2.1.3 (2.1.X), involves quadratic-time escaping when stringifying X.500 distinguished names. This inefficiency can cause excessive CPU usage, potentially leading to denial-of-service conditions. The issue is categorized under CWE-407 (Improper Resource Management). No known exploits are reported in the wild, and no patch links are provided in the data.
Potential Impact
The vulnerability can cause high CPU resource consumption due to quadratic-time processing when escaping X.500 distinguished names. This may lead to denial-of-service conditions or degraded performance in applications using affected Bouncy Castle versions. No direct evidence of remote code execution or data breach is indicated.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or fix links are provided, users should monitor vendor communications for updates. Until a fix is available, consider limiting exposure to untrusted input that triggers X.500 distinguished name stringification or applying application-level resource controls to mitigate potential denial-of-service impact.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4mwx-9cgq-h2wp
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58059"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a710683bf32cb7a343985cf
Added to database: 08/03/2026, 21:22:11 UTC
Last enriched: 08/03/2026, 21:41:31 UTC
Last updated: 09/17/2026, 22:01:36 UTC
Views: 60
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.