CVE-2026-13586

PKCS#12 MAC and bag-decryption KDF iteration-count bound (DoS)

Published Aug 3, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
In Bouncy Castle for Java before 1.85, PKCS#12 MAC and bag-decryption KDF iteration-count bound (DoS). This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).

Analysis

AI-generated

Technical impact

The vulnerability in Bouncy Castle for Java allows an attacker to trigger excessive resource consumption by exploiting the PKCS#12 MAC and bag‑decryption key‑derivation‑function iteration‑count bound. By supplying a PKCS#12 file with an iteration count set to a very low or otherwise unchecked value, the library will perform an unintended amount of cryptographic work, potentially exhausting CPU or memory and causing the application to become unresponsive. The weakness is classified as CWE‑770, indicating resource exhaustion.

Affected Systems

Affected are the Bouncy Castle products from the Legion of the Bouncy Castle Inc.: BC-JAVA and BC-LTS-JAVA before version 1.85 and 2.73.12 respectively, and the FIPS-enabled BC-FJA before bc‑fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series), and 2.1.3 (2.1.X series). These libraries are used in Java applications that process PKCS#12 keystores and certificates.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and the exploit probability is unknown because the EPSS score is not available. The vulnerability is not listed in the CISA KEV catalog. Likely attack vectors involve sending crafted PKCS#12 files to any service or application that loads them using Bouncy Castle; this can be performed remotely if the service accepts user‑supplied files. Exploitation would cause denial of service by inducing excessive crypto work, with the impact limited to the affected process and system resources.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Bouncy Castle for Java to version 1.85 or newer, BC‑LTS‑JAVA to 2.73.12 or newer, and BC‑FJA to bc‑fips 1.0.2.7 or newer series.
  • Configure the application to validate and enforce a safe minimum and maximum iteration count on any PKCS#12 file before passing it to Bouncy Castle.
  • Deploy monitoring or rate‑limiting for cryptographic operations to detect and mitigate abnormal CPU or memory usage that could indicate exploitation.

Generated by OpenCVE AI on August 3, 2026 at 08:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Bouncycastle
Bouncycastle bc-java
Bouncycastle bouncy Castle For Java Lts
Bouncycastle fips Java Api
CPEs cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:fips_java_api:*:*:*:*:*:*:*:*
Vendors & Products Bouncycastle
Bouncycastle bc-java
Bouncycastle bouncy Castle For Java Lts
Bouncycastle fips Java Api
Metrics cvssV3_1

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

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-fja
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-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description In Bouncy Castle for Java before 1.85, PKCS#12 MAC and bag-decryption KDF iteration-count bound (DoS). This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).
Title PKCS#12 MAC and bag-decryption KDF iteration-count bound (DoS)
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'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
bcorg
Published
Updated
Aug 3, 2026, 3:03 PM
Reserved
Jun 29, 2026, 4:09 AM
Status
Analyzed
Published
Aug 3, 2026, 4:16 AM
Modified
Aug 28, 2026, 4:43 PM