Infinite loop 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.21% (11th 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-20537011
  • published6 Oct 2026
  • disclosed2 Oct 2026

Introduced: 2 Oct 2026

NewCVE-2026-63570  (opens in a new tab)
CWE-835  (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 Infinite loop in Pkcs12Store.GetCertificateChain in crypto/src/pkcs/Pkcs12Store.cs. An attacker can force the call to never return and exhaust CPU and memory by supplying a crafted PKCS#12 file with issuer links that form a cycle, such as certificates whose AuthorityKeyIdentifier extensions refer to each other. When an application loads the malicious store and requests a key entry’s certificate chain, the chain-building logic keeps following issuer links without tracking already visited certificates, eventually ending in an OutOfMemoryException.

CVSS Base Scores

version 4.0
version 3.1