Description
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.
Published: 2026-10-03
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service through unbounded key derivation
Action: Apply Patch
AI Analysis

Impact

In Bouncy Castle for Java versions prior to 1.86, the legacy PBES1 and PKCS#12 PBE algorithms accepted an iterator count directly from untrusted input without bounding it; this allowed an attacker to set the count to any integer value, potentially triggering an arbitrarily large number of cryptographic operations that drain CPU time and memory before authentication succeeds, thus resulting in denial of service. The flaw originates from a lack of bounds checking in the derived key generation step (CWE-770).

Affected Systems

The vulnerability affects the raw Java Cryptography Architecture provider supplied by Bouncy Castle Inc., specifically the BC-JAVA library for all versions before 1.86 and the BC-LTS-JAVA library for all LTS versions before 2.73.13.

Risk and Exploitability

The vulnerability has a CVSS score of 5.3 and is not listed in the CISA KEV catalog; the EPSS score of 0.00263 (about 0.26%) indicates a low but nonzero exploitation probability. Likely, the attack vector involves supplying malicious PBES1 or PKCS#12 PBE parameters with inflated iteration counts, causing the target application to perform excessive work during key derivation. This can be executed remotely if the application accepts externally supplied encrypted keys. Because the flaw is a purely resource exhaustion issue, mitigating the risk largely depends on bounding the iteration count or patching the library.

Generated by OpenCVE AI on October 17, 2026 at 10:03 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Bouncy Castle library to version 1.86 or later, and upgrade the LTS library to version 2.73.13 or later.
  • If an upgrade is not immediately viable, configure the system property org.bouncycastle.pbe.max_iteration_count to a lower value (such as 1,000,000) to limit maximum iteration counts.
  • Validate or reject any externally supplied PBES1 or PKCS#12 PBE parameters that attempt to use unusually high iteration counts before processing them.
  • Consider disabling legacy PBES1 and PKCS#12 PBE usage in the application if they are not required, thereby eliminating the vector entirely.

Generated by OpenCVE AI on October 17, 2026 at 10:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-606
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Moderate


Mon, 05 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 04 Oct 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java
Vendors & Products Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java

Sat, 03 Oct 2026 09:00:00 +0000


Sat, 03 Oct 2026 08:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Legacy PBES1 and PKCS#12 PBE iteration count honoured unbounded in the raw JCA provider
Weaknesses CWE-770
References
Metrics cvssV4_0

{'score': 5.3, 'vector': '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/U:Amber'}


Subscriptions

Legion Of The Bouncy Castle Inc. Bc-java Bc-lts-java
cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-10-05T17:00:58.750Z

Reserved: 2026-09-25T08:41:02.479Z

Link: CVE-2026-97873

cve-icon Vulnrichment

Updated: 2026-10-05T17:00:50.083Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-03T09:17:06.280

Modified: 2026-10-06T14:49:40.823

Link: CVE-2026-97873

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-03T08:04:43Z

Links: CVE-2026-97873 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T10:15:07Z

Weaknesses
  • CWE-606

    Unchecked Input for Loop Condition

  • CWE-770

    Allocation of Resources Without Limits or Throttling