CVE-2026-63578 Unbounded PBE iteration count when decrypting PKCS#8 private keys

High 7.1 Published Updated

An attacker can cause denial of service via CPU exhaustion by supplying a PKCS#8 private key with an unbounded PBE iteration count in the Bouncy Castle C# library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-63578?

CVE-2026-63578 is a high-severity denial of service vulnerability in Legion of the Bouncy Castle Inc. bc-csharp, published on 2 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Allocation of resources without limits in password-based private-key decryption (PbeUtilities.GenerateCipherParameters) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who can supply an encrypted private key, such as a PKCS#8 EncryptedPrivateKeyInfo or "ENCRYPTED PRIVATE KEY" PEM file, to cause a denial of service through CPU exhaustion via an iteration count close to 2^31, because the count is taken from the unauthenticated algorithm parameters without an upper bound and the key derivation runs before the password or the data can be checked. PKCS#5 PBES1 and PBES2 (PBKDF2), the PKCS#12 PBE algorithms and CMS password recipients (CmsPbeKey) are affected. Loading PKCS#12 files with Pkcs12Store is covered by CVE-2026-63572, and a zero or negative count with the PKCS#12 algorithms by CVE-2026-63575.

Weakness: CWE-770

Which versions are affected by CVE-2026-63578?

It affects 1 product.

Products include Bouncycastle Bc-Csharp.

How do I fix CVE-2026-63578?

No fix has been published for CVE-2026-63578 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-63578 being exploited?

There is no known exploitation of CVE-2026-63578 in the wild and no public exploit code.

Sources

Also known as GHSA-4583-5v2w-p3vq.

Is CVE-2026-63578 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free