CVE-2026-103604: CWE-407 Inefficient Algorithmic Complexity in Legion of the Bouncy Castle Inc. bc-csharp
Inefficient algorithmic complexity in X.509 distinguished name string conversion (X509Name.ToString and IetfUtilities.ValueToString) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote unauthenticated attacker to cause a denial of service through CPU exhaustion via a certificate, CRL, certification request or other structure whose name contains a long attribute value made up of characters that must be escaped, such as commas, or of leading or trailing spaces, because each escaping backslash was inserted into the buffer being scanned, so the work grew quadratically with the length of the value. Applications are exposed when they convert such a name to a string, for example to log or display it, or compare it with IetfUtilities.RdnAreEqual, as PKIX path validation does for directoryName name constraints.
AI Analysis
Technical Summary
The vulnerability (CVE-2026-103604) affects the X509Name.ToString and IetfUtilities.ValueToString methods in Legion of the Bouncy Castle Inc. bc-csharp versions prior to 2.7.0. The inefficient algorithmic complexity occurs during conversion of X.509 distinguished names containing long attribute values with characters that must be escaped. Each escaping backslash insertion causes the processing workload to grow quadratically with the length of the value, enabling a remote unauthenticated attacker to cause CPU exhaustion and denial of service. This impacts any application that converts such names to strings, including for logging, display, or directoryName name constraint validation in PKIX path validation.
Potential Impact
A remote unauthenticated attacker can cause denial of service by exhausting CPU resources when the vulnerable library processes specially crafted X.509 names with long attribute values requiring escaping. This can disrupt applications relying on the bc-csharp library for certificate, CRL, or certification request processing, potentially leading to service outages or degraded performance.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing certificates or related structures with unusually long attribute values containing characters that require escaping. Monitor vendor channels for updates and apply official fixes once released.
CVE-2026-103604: CWE-407 Inefficient Algorithmic Complexity in Legion of the Bouncy Castle Inc. bc-csharp
Description
Inefficient algorithmic complexity in X.509 distinguished name string conversion (X509Name.ToString and IetfUtilities.ValueToString) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote unauthenticated attacker to cause a denial of service through CPU exhaustion via a certificate, CRL, certification request or other structure whose name contains a long attribute value made up of characters that must be escaped, such as commas, or of leading or trailing spaces, because each escaping backslash was inserted into the buffer being scanned, so the work grew quadratically with the length of the value. Applications are exposed when they convert such a name to a string, for example to log or display it, or compare it with IetfUtilities.RdnAreEqual, as PKIX path validation does for directoryName name constraints.
CVSS v4.0
Score 8.7high
Affected software
Run 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 (CVE-2026-103604) affects the X509Name.ToString and IetfUtilities.ValueToString methods in Legion of the Bouncy Castle Inc. bc-csharp versions prior to 2.7.0. The inefficient algorithmic complexity occurs during conversion of X.509 distinguished names containing long attribute values with characters that must be escaped. Each escaping backslash insertion causes the processing workload to grow quadratically with the length of the value, enabling a remote unauthenticated attacker to cause CPU exhaustion and denial of service. This impacts any application that converts such names to strings, including for logging, display, or directoryName name constraint validation in PKIX path validation.
Potential Impact
A remote unauthenticated attacker can cause denial of service by exhausting CPU resources when the vulnerable library processes specially crafted X.509 names with long attribute values requiring escaping. This can disrupt applications relying on the bc-csharp library for certificate, CRL, or certification request processing, potentially leading to service outages or degraded performance.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing certificates or related structures with unusually long attribute values containing characters that require escaping. Monitor vendor channels for updates and apply official fixes once released.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-p48w-99f8-9598
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-103604"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abfeeb7a43b0b3b89e560a0
Added to database: 10/02/2026, 17:49:43 UTC
Last enriched: 10/02/2026, 18:21:03 UTC
Last updated: 10/02/2026, 19:59:20 UTC
Views: 3
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.