Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in Legion of the Bouncy Castle Inc. (CVE-2026-63575)
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.
AI Analysis
Technical Summary
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.
Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in Legion of the Bouncy Castle Inc. (CVE-2026-63575)
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
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 (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.
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 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.