CVEfocus › CVE database › CVE-2026-97873

CVE-2026-97873Legacy PBES1 and PKCS#12 PBE iteration count honoured unbounded in the raw JCA provider

CVSS 5.3 MediumEPSS 0.4% (higher than 31% of CVEs)Published 2026-10-03Updated 2026-10-05Assigner: bcorg

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.

CWE-770

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

1Fixed
8Fix pending
1Under investigation
8Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10bouncycastleFix pendingUBUNTU-CVE-2026-97873
Ubuntu 26.04bouncycastleUnder investigationUBUNTU-CVE-2026-97873
Ubuntu 24.04bouncycastleFix pendingUBUNTU-CVE-2026-97873
Ubuntu 22.04bouncycastleFix pendingUBUNTU-CVE-2026-97873
Ubuntu 20.04bouncycastleFix pendingUBUNTU-CVE-2026-97873
Ubuntu 18.04bouncycastleFix pendingUBUNTU-CVE-2026-97873
Ubuntu 16.04bouncycastleFix pendingUBUNTU-CVE-2026-97873
Debian 14bouncycastleFixed1.86-1DEBIAN-CVE-2026-97873
Debian 13bouncycastleFix pendingDEBIAN-CVE-2026-97873
Debian 12bouncycastleFix pendingDEBIAN-CVE-2026-97873
Red Hat Enterprise Linux 9jmcNot affected
Red Hat Enterprise Linux 9pki-resteasy-clientNot affected
Red Hat Enterprise Linux 9pki-resteasy-coreNot affected
Red Hat Enterprise Linux 9pki-resteasy-jackson2-providerNot affected
Red Hat Enterprise Linux 9pki-resteasy-servlet-initializerNot affected
Red Hat Enterprise Linux 9resteasyNot affected
Red Hat Enterprise Linux 8resteasyNot affected
Red Hat Enterprise Linux 8resteasy-javadocNot 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.

Vendor advisories:

References

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.