Loop with unreachable exit condition in Pkcs12Store.GetCertificateChain in Legion of the Bouncy Castle Inc. (CVE-2026-63570)
A vulnerability in Legion of the Bouncy Castle Inc. bc-csharp before version 2.7.0 causes a denial of service due to a loop with an unreachable exit condition in the Pkcs12Store.GetCertificateChain method. This occurs when processing crafted PKCS#12 files containing certificates whose issuer links form a cycle, leading to infinite looping and resource exhaustion until an OutOfMemoryException is thrown.
AI Analysis
Technical Summary
The vulnerability exists in the Pkcs12Store.GetCertificateChain method of bc-csharp before 2.7.0. The method attempts to build a certificate chain by following issuer links but does not track certificates already visited. If the chain contains a cycle, such as two certificates referencing each other via AuthorityKeyIdentifier extensions, the loop never terminates. This results in a denial of service by consuming CPU and memory until the application crashes with an OutOfMemoryException. The chain-building logic stops only when no issuer is found or a certificate links to itself, but it does not verify signatures or detect cycles.
Potential Impact
An attacker who can supply a crafted PKCS#12 file to an application that loads it and requests a key entry's certificate chain can cause the application to hang indefinitely and consume excessive CPU and memory resources. This leads to a denial of service condition, potentially crashing the application due to an OutOfMemoryException.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid loading untrusted or unauthenticated PKCS#12 files in applications using bc-csharp before 2.7.0. Monitor for updates from the vendor regarding a patch or official fix.
Loop with unreachable exit condition in Pkcs12Store.GetCertificateChain in Legion of the Bouncy Castle Inc. (CVE-2026-63570)
Description
A vulnerability in Legion of the Bouncy Castle Inc. bc-csharp before version 2.7.0 causes a denial of service due to a loop with an unreachable exit condition in the Pkcs12Store.GetCertificateChain method. This occurs when processing crafted PKCS#12 files containing certificates whose issuer links form a cycle, leading to infinite looping and resource exhaustion until an OutOfMemoryException is thrown.
CVSS v4.0
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 exists in the Pkcs12Store.GetCertificateChain method of bc-csharp before 2.7.0. The method attempts to build a certificate chain by following issuer links but does not track certificates already visited. If the chain contains a cycle, such as two certificates referencing each other via AuthorityKeyIdentifier extensions, the loop never terminates. This results in a denial of service by consuming CPU and memory until the application crashes with an OutOfMemoryException. The chain-building logic stops only when no issuer is found or a certificate links to itself, but it does not verify signatures or detect cycles.
Potential Impact
An attacker who can supply a crafted PKCS#12 file to an application that loads it and requests a key entry's certificate chain can cause the application to hang indefinitely and consume excessive CPU and memory resources. This leads to a denial of service condition, potentially crashing the application due to an OutOfMemoryException.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid loading untrusted or unauthenticated PKCS#12 files in applications using bc-csharp before 2.7.0. Monitor for updates from the vendor regarding a patch or official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-g2c8-ppvq-rq73
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63570"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abfeeb7a43b0b3b89e560a4
Added to database: 10/02/2026, 17:49:43 UTC
Last enriched: 10/02/2026, 18:21:18 UTC
Last updated: 10/02/2026, 19:45:56 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.