Inefficient Algorithmic Complexity Affecting bouncycastle.cryptography package, versions [,2.7.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-BOUNCYCASTLECRYPTOGRAPHY-20537006
  • published6 Oct 2026
  • disclosed2 Oct 2026

Introduced: 2 Oct 2026

NewCVE-2026-103604  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade BouncyCastle.Cryptography to version 2.7.0 or higher.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in IetfUtilities.ValueToString and X509Name.ToString in the X.509 distinguished name string conversion code. An attacker can exhaust CPU by supplying a certificate, CRL, certification request, or other ASN.1 structure with a distinguished name whose attribute value is very long and contains many escapable characters, such as commas, or leading/trailing spaces, causing the name to be converted to a string for logging, display, comparison, or path validation.

CVSS Base Scores

version 4.0
version 3.1