Skip to main content
EPSS 0.3%top 76%

CVE-2026-63572: CWE-770 Allocation of Resources Without Limits or Throttling in Legion of the Bouncy Castle Inc. bc-csharp

0
High
VulnerabilityCVE-2026-63572cvecve-2026-63572cwe-770
Published: 10/02/2026 (10/02/2026, 07:04:37 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: 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

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
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

Affected software

Legion of the Bouncy Castle Inc.

bc-csharp

Affected versions
>=0 <2.7.0
BouncyCastle.Cryptography
pkg:nuget/BouncyCastle.Cryptography
Affected versions
>=0 <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, 07:46:30 UTC

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.

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

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 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