CVE-2026-12185 BKS/UBER keystore allocates from untrusted lengths before integrity check

High 7.1 Published Updated

Attackers can cause denial of service in Bouncy Castle Java libraries by providing crafted keystore data that triggers excessive memory allocation before integrity checks.

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

CVE-2026-12185 is a high-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, BKS/UBER keystore allocates from untrusted lengths before integrity check. This issue also affects Bouncy Castle for Java LTS before 2.73.12.

Weakness: CWE-789

Which versions are affected by CVE-2026-12185?

It affects 2 products.

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

How do I fix CVE-2026-12185?

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

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

All Bouncycastle Bc-Java vulnerabilities

Sources

Also known as CLEANSTART-2026-BT04209, CLEANSTART-2026-FI53699, CLEANSTART-2026-MX09474, CLEANSTART-2026-PR35297, CLEANSTART-2026-XU20448, DEBIAN-CVE-2026-12185 and 2 more.

Is CVE-2026-12185 in your software?

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

Check your SBOMs for free