Skip to main content

Loop with unreachable exit condition in Pkcs12Store.GetCertificateChain in Legion of the Bouncy Castle Inc. (CVE-2026-63570)

0
High
Published: 10/02/2026 (10/02/2026, 09:31:19 UTC)
Source: GCVE Database

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

bc-csharp
pkg:nuget/bc-csharp
Affected versions
<2.7.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 18:21:18 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses