CVE-2026-63572: CWE-770 Allocation of Resources Without Limits or Throttling in Legion of the Bouncy Castle Inc. bc-csharp
Allocation of resources without limits in PKCS#12 keystore loading (Pkcs12Store.Load) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who can supply a PKCS#12 (PFX) file to cause a denial of service through CPU exhaustion via an iteration count close to 2^31 in the file's MacData or in the PBE parameters of an encrypted SafeContents or shrouded key bag, because the counts are taken from the file without an upper bound and the key derivation runs before the MAC or the password can be checked. A zero or negative count is covered by CVE-2026-63575. Pkcs12Utilities.ConvertToDefiniteLength is also affected.
AI Analysis
Technical Summary
The vulnerability CVE-2026-63572 in bc-csharp before 2.7.0 arises from unbounded resource allocation during PKCS#12 keystore loading. An attacker who can supply a crafted PKCS#12 (PFX) file can specify an iteration count near 2^31 in the file's MacData or PBE parameters, causing the key derivation function to consume excessive CPU resources before verifying the MAC or password. This lack of upper limits on iteration counts leads to a denial of service condition via CPU exhaustion. The affected code paths include Pkcs12Store.Load and Pkcs12Utilities.ConvertToDefiniteLength. A related issue with zero or negative counts is tracked separately under CVE-2026-63575.
Potential Impact
An attacker able to supply a malicious PKCS#12 file can cause the application using bc-csharp to consume excessive CPU resources, leading to denial of service. This can disrupt normal operation of services relying on PKCS#12 keystore loading, potentially causing application unavailability or degraded performance. There is no indication of privilege escalation or data compromise from this vulnerability alone.
Mitigation Recommendations
A fix is available in bc-csharp version 2.7.0 and later. Users should upgrade to version 2.7.0 or newer to mitigate this vulnerability. No other mitigation or workaround is indicated in the provided data.
CVE-2026-63572: CWE-770 Allocation of Resources Without Limits or Throttling in Legion of the Bouncy Castle Inc. bc-csharp
Description
Allocation of resources without limits in PKCS#12 keystore loading (Pkcs12Store.Load) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who can supply a PKCS#12 (PFX) file to cause a denial of service through CPU exhaustion via an iteration count close to 2^31 in the file's MacData or in the PBE parameters of an encrypted SafeContents or shrouded key bag, because the counts are taken from the file without an upper bound and the key derivation runs before the MAC or the password can be checked. A zero or negative count is covered by CVE-2026-63575. Pkcs12Utilities.ConvertToDefiniteLength is also affected.
CVSS v4.0
Score 7.1high
Affected software
Legion of the Bouncy Castle Inc.
bc-csharp
pkg:nuget/BouncyCastle.CryptographyRun 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 CVE-2026-63572 in bc-csharp before 2.7.0 arises from unbounded resource allocation during PKCS#12 keystore loading. An attacker who can supply a crafted PKCS#12 (PFX) file can specify an iteration count near 2^31 in the file's MacData or PBE parameters, causing the key derivation function to consume excessive CPU resources before verifying the MAC or password. This lack of upper limits on iteration counts leads to a denial of service condition via CPU exhaustion. The affected code paths include Pkcs12Store.Load and Pkcs12Utilities.ConvertToDefiniteLength. A related issue with zero or negative counts is tracked separately under CVE-2026-63575.
Potential Impact
An attacker able to supply a malicious PKCS#12 file can cause the application using bc-csharp to consume excessive CPU resources, leading to denial of service. This can disrupt normal operation of services relying on PKCS#12 keystore loading, potentially causing application unavailability or degraded performance. There is no indication of privilege escalation or data compromise from this vulnerability alone.
Mitigation Recommendations
A fix is available in bc-csharp version 2.7.0 and later. Users should upgrade to version 2.7.0 or newer to mitigate this vulnerability. No other mitigation or workaround is indicated in the provided data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-07-16T23:50:45.118Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abf5de5a43b0b3b8988e87b
Added to database: 10/02/2026, 07:31:49 UTC
Last enriched: 10/02/2026, 07:46:30 UTC
Last updated: 10/02/2026, 20:45:56 UTC
Views: 9
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.