CVE-2026-97873Legacy PBES1 and PKCS#12 PBE iteration count honoured unbounded in the raw JCA provider
In Bouncy Castle for Java before 1.86, the raw JCA provider's legacy PBES1 (PKCS#5 scheme 1) and PKCS#12 PBE families ran their password-based key derivation with an iteration count taken from untrusted input without bounding it, so a small input could dictate an arbitrary amount of work before anything could be verified. The AlgorithmParameters implementations (PKCS12PBE and its object identifier aliases, and PBKDF1) accepted any count from an encoded PKCS12PBEParams or PBEParameter, narrowing a value beyond the int range with intValue(), and every Cipher, Mac and SecretKeyFactory in these families derived with whatever count it was given, including one decoded by another provider's AlgorithmParameters, as when javax.crypto.EncryptedPrivateKeyInfo.getKeySpec() decrypts a PKCS#12 PBE-protected private key with BC. Both the parameter parse and the derivations now reject a negative or over-limit count under the org.bouncycastle.pbe.max_iteration_count property (default 10,000,000) that already bounded PBKDF2 (CVE-2026-17508), and the parse rejects a count beyond the int range rather than narrowing it. This issue also affects Bouncy Castle for Java LTS before 2.73.13.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | bouncycastle | Fix pending | UBUNTU-CVE-2026-97873 | |
| Ubuntu 26.04 | bouncycastle | Under investigation | UBUNTU-CVE-2026-97873 | |
| Ubuntu 24.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-97873 | |
| Ubuntu 22.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-97873 | |
| Ubuntu 20.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-97873 | |
| Ubuntu 18.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-97873 | |
| Ubuntu 16.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-97873 | |
| Debian 14 | bouncycastle | Fixed | 1.86-1 | DEBIAN-CVE-2026-97873 |
| Debian 13 | bouncycastle | Fix pending | DEBIAN-CVE-2026-97873 | |
| Debian 12 | bouncycastle | Fix pending | DEBIAN-CVE-2026-97873 | |
| Red Hat Enterprise Linux 9 | jmc | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-client | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-core | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-jackson2-provider | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-servlet-initializer | Not affected | ||
| Red Hat Enterprise Linux 9 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy-javadoc | Not affected |
What the vendor says
As published in the CVE record by bcorg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Legion of the Bouncy Castle Inc. BC-JAVA: affected: before 1.86; fixed in
1.86 - Legion of the Bouncy Castle Inc. BC-LTS-JAVA: affected: 2.73.0 to before 2.73.13; fixed in
2.73.13
Vendor advisories:
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9097873 (vendor-advisory)
- https://github.com/bcgit/bc-java/commit/766a31026ac24ed3c6cad8662058ba450c338da1 (patch)
References
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9097873
- https://github.com/bcgit/bc-java/commit/766a31026ac24ed3c6cad8662058ba450c338da1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.