CVE Catalog

CVE-2026-103604

HighCVSS 8.7
Published: Translated: NVD NIST

Summary

Inefficient algorithmic complexity in X.509 distinguished name string conversion (X509Name.ToString and IetfUtilities.ValueToString) in Bouncy Castle for .NET (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 requiring escaping (e.g., commas, leading/trailing spaces), causing quadratic growth in processing time.

Risk Assessment

Applications that convert such names to strings (e.g., for logging, display, or comparison in PKIX path validation) can be overwhelmed, leading to denial of service. This can paralyze systems processing certificates.

Recommendation

Update the Bouncy Castle for .NET (bc-csharp) library to version 2.7.0 or later. Restrict processing of untrusted certificates and structures if updating is not possible.

Other vulnerabilities in Bouncy Castle (bc-csharp)

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS