Skip to content
RedCVE

CVE-2026-17508Legion OF The Bouncy Castle Inc BC-JAVA allocation of resources without limits

CVSS score

5.3

Medium

CVSS 4.0 from 91579145-5d7b-4cc5-b925-a0262ff19630

Exploit probability (EPSS)

0.42%

0.42% chance of exploitation in the next 30 days, higher than 36.8% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official description

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).

Source: NVD · CNA: 91579145-5d7b-4cc5-b925-a0262ff19630

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Legion of the Bouncy Castle Inc. BC-JAVA, Legion of the Bouncy Castle Inc. BC-LTS-JAVA, Legion of the Bouncy Castle Inc. BC-FJA and compare its version with the affected versions.

  2. Update to a fixed version

    • Update BC-FJA to 1.0.13, 2.0.13, 2.1.13 or later, on the branch you run.
    • Update BC-JAVA to 1.86 or later.
    • Update BC-LTS-JAVA to 2.73.13 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
Passive
Confidentiality
None
Integrity
None
Availability
Low

Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber

Affected products

Affected productsVersions
Legion of the Bouncy Castle Inc. BC-JAVA< 1.86
Legion of the Bouncy Castle Inc. BC-LTS-JAVA≥ 2.73.0, < 2.73.13
Legion of the Bouncy Castle Inc. BC-FJA≥ 1.0.0, < 1.0.13 · ≥ 2.0.0, < 2.0.13 · ≥ 2.1.0, < 2.1.13

Weakness

  • CWE-770 allocation of resources without limits

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-17508 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-17508?

CVE-2026-17508 has a CVSS 4.0 base score of 5.3 (medium).

Which versions are affected?

Legion OF The Bouncy Castle Inc BC-JAVA (< 1.86), Legion OF The Bouncy Castle Inc BC-LTS-JAVA (≥ 2.73.0, < 2.73.13), Legion OF The Bouncy Castle Inc BC-FJA (≥ 1.0.0, < 1.0.13; ≥ 2.0.0, < 2.0.13; ≥ 2.1.0, < 2.1.13)

Is there a patch for CVE-2026-17508?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.