CVEfocus › CVE database › CVE-2026-17508

CVE-2026-17508Password-based KDF cost parameters honoured unbounded from untrusted input across the…

CVSS 5.3 MediumEPSS 0.6% (higher than 42% of CVEs)Published 2026-10-02Updated 2026-10-02Assigner: bcorg

In Bouncy Castle for Java before 1.86, several password-based key derivation entry points ran the KDF with cost parameters taken from the untrusted input being processed, without bounding them, so a small input could dictate an arbitrary amount of work before any password or integrity check could reject it. The affected paths are the RFC 9579 PBMAC1 MAC calculator builders, which took the PBKDF2 iteration count and derived-key length straight out of PBMAC1Params (JcePBMac1CalculatorBuilder, and PKCS12PBEUtils.createPBMac1Calculator reached from PKCS12PfxPdu.isMacValid); the scrypt parallelization parameter p in the PKCS#8 and PKCS#12 cost guards, which bounded only the cost parameter N and the block size r even though the scratch buffer scales with r times p, so the configured memory ceiling could be evaded entirely; the raw JCA PBKDF2 provider (org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2); and the bcrypt round count read from an encrypted OpenSSH v1 private key's own kdfoptions. Each now bounds the parameter before deriving, in line with the caps already applied elsewhere in the tree, with the OpenSSH round count configurable through the new org.bouncycastle.openssh.max_rounds property. This completes the bounding begun in 1.85 for the PKCS#8 / PBES2 decryptors (CVE-2026-15055). This issue also affects Bouncy Castle for Java LTS before 2.73.13, and Bouncy Castle for Java FIPS (BC-FJA) before bcpkix-fips 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series).

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

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-17508
Ubuntu 26.04bouncycastleUnder investigationUBUNTU-CVE-2026-17508
Ubuntu 24.04bouncycastleFix pendingUBUNTU-CVE-2026-17508
Ubuntu 22.04bouncycastleFix pendingUBUNTU-CVE-2026-17508
Ubuntu 20.04bouncycastleFix pendingUBUNTU-CVE-2026-17508
Ubuntu 18.04bouncycastleFix pendingUBUNTU-CVE-2026-17508
Ubuntu 16.04bouncycastleFix pendingUBUNTU-CVE-2026-17508
Debian 14bouncycastleFixed1.86-1DEBIAN-CVE-2026-17508
Debian 13bouncycastleFix pendingDEBIAN-CVE-2026-17508
Debian 12bouncycastleFix pendingDEBIAN-CVE-2026-17508

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.