CVE-2026-13586 PKCS#12 MAC and bag-decryption KDF iteration-count bound (DoS)

Medium 5.3 Published Updated

An attacker can cause a denial of service in Bouncy Castle for Java by exploiting unbounded iteration counts in PKCS#12 MAC and KDF operations.

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
Available

What is CVE-2026-13586?

CVE-2026-13586 is a medium-severity denial of service vulnerability in Bouncycastle Bc-Java, published on 3 Aug 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

In Bouncy Castle for Java before 1.85, PKCS#12 MAC and bag-decryption KDF iteration-count bound (DoS). This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).

Weakness: CWE-770

Which versions are affected by CVE-2026-13586?

It affects 3 products.

Products include Bouncycastle Bc-Java, Bouncycastle Bouncy Castle for Java Lts, Bouncycastle Fips Java Api.

How do I fix CVE-2026-13586?

Upgrade to a fixed version.

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-13586 being exploited?

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

All Bouncycastle Bc-Java vulnerabilities

Sources

Also known as CLEANSTART-2026-HN44732, CLEANSTART-2026-PC99229, CLEANSTART-2026-PP95787, CLEANSTART-2026-WQ77811, CLEANSTART-2026-YK52192, DEBIAN-CVE-2026-13586 and 2 more.

Is CVE-2026-13586 in your software?

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

Check your SBOMs for free