Skip to main content

Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in Legion of the Bouncy Castle Inc. (CVE-2026-63575)

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

Description

A vulnerability in the PKCS#12 key derivation implementation (Pkcs12ParametersGenerator) in Legion of the Bouncy Castle Inc. bc-csharp before version 2.7.0 allows an attacker to cause a denial of service via CPU exhaustion. This occurs when a PKCS#12 (PFX) file or PKCS#8 encrypted private key uses a PKCS#12 password-based encryption algorithm with an iteration count of zero or below. The derivation loop runs until its counter equals the count, but for zero or negative counts, it wraps around causing approximately 2^32 iterations, significantly delaying processing.

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:35 UTC

Technical Analysis

The vulnerability (CVE-2026-63575) exists in the PKCS#12 key derivation function (Pkcs12ParametersGenerator) of Legion of the Bouncy Castle Inc.'s bc-csharp library versions prior to 2.7.0. The flaw is a loop with an unreachable exit condition when the iteration count parameter is zero or negative. Instead of terminating, the loop counter wraps around and causes the function to perform roughly 4 billion iterations, leading to CPU exhaustion and denial of service. This can be triggered by an attacker who can supply a crafted PKCS#12 (PFX) file or PKCS#8 encrypted private key using the affected password-based encryption algorithm. The issue impacts the loading process of such files, significantly delaying or halting normal operation.

Potential Impact

An attacker able to supply a maliciously crafted PKCS#12 or PKCS#8 encrypted private key file can cause a denial of service condition by exhausting CPU resources. This results in prolonged processing times and potential service unavailability during the key loading operation. There is no indication of confidentiality, integrity, or authentication bypass impacts from the provided data.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted PKCS#12 or PKCS#8 files with potentially manipulated iteration counts. Monitor for vendor updates regarding a patch or official mitigation.

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-7c84-x75c-5j8m
Osv Schema Version
1.4.0
Aliases
["CVE-2026-63575"]
Database Specific Severity
HIGH
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6abfeeb8a43b0b3b89e561b2

Added to database: 10/02/2026, 17:49:44 UTC

Last enriched: 10/02/2026, 18:21:35 UTC

Last updated: 10/02/2026, 19:46:39 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