Skip to main content

Bouncy Castle CVE-2026-97873

| EUVDEUVD-2026-91987 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-10-03 bcorg GHSA-78x9-mjv2-rr3v
5.3
CVSS 4.0 · Vendor: bcorg
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft PKCS#12 with huge iteration count
  2. Exploit
    Victim app parses it via BC JCA provider
  3. Execution
    Unbounded PBE key derivation executes
  4. Impact
    CPU exhaustion denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target must be a Java application using Bouncy Castle (bc-java before 1.86 or bc-lts-java before 2.73.13) as its JCA provider AND must parse or decrypt attacker-influenced data that carries a PBE iteration count - specifically encoded PKCS12PBEParams or PBEParameter consumed by the PKCS12PBE/PBKDF1 AlgorithmParameters, or any Cipher/Mac/SecretKeyFactory in the legacy PBES1/PKCS#12 PBE families, including the common path of javax.crypto.EncryptedPrivateKeyInfo.getKeySpec() decrypting a PKCS#12 PBE-protected private key. Exploitation is limited by UI:P: the victim application must actually ingest and attempt to process the malicious key material, so a deployment that never handles untrusted keystores/encrypted keys is not exposed. Impact is confined to availability (CPU/time exhaustion); there is no confidentiality or integrity effect.

Impact

This is a moderate, availability-only issue, not an urgent priority. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VA:L, all confidentiality/integrity N) correctly frames it as a CPU-exhaustion denial of service with no data compromise, consistent with CWE-770 (unbounded resource allocation) and the description, which states an attacker-controlled iteration count dictates arbitrary key-derivation work. No KEV listing, no POC reference, and no EPSS score are present in the input, so exploitation evidence is absent - status is 'no public exploit identified at time of analysis.' The one tempering signal is UI:P (passive user interaction): exploitation is not fully autonomous network exploitation because the victim application must actually ingest and attempt to decrypt the attacker-supplied PKCS#12/PBE material. The signals are internally consistent (network-reachable but requires the app to process malicious input, impact limited to availability); there is no conflict to flag, though the real-world severity depends heavily on whether a given deployment parses untrusted PKCS#12 / encrypted-private-key material with BC as the JCA provider.

Exploit ScenarioDerived

An attacker submits a crafted PKCS#12 bundle or PBE-protected encrypted private key whose encoded PKCS12PBEParams/PBEParameter specifies an enormous iteration count to a Java application that uses Bouncy Castle as its JCA provider (for example a service that imports uploaded keystores or calls EncryptedPrivateKeyInfo.getKeySpec()). Because the legacy PBES1/PKCS#12 PBE derivation accepted the count without bounding it, the application burns arbitrary CPU on key derivation before any verification can fail, exhausting a thread or the host. No public exploit code is identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 03, 2026

Denial of service in Bouncy Castle for Java (bc-java before 1.86 and bc-lts-java before 2.73.13) arises because the legacy PBES1 (PKCS#5 scheme 1) and PKCS#12 PBE families derive keys using an iteration count read from untrusted input without upper or lower bounds, so a tiny amount of attacker-controlled data can force an unbounded amount of CPU work before any validation occurs. Unauthenticated remote attackers can trigger the condition by supplying crafted PKCS12PBEParams/PBEParameter encodings or a PKCS#12 PBE-protected private key that the application processes through the raw JCA provider, including the common javax.crypto.EncryptedPrivateKeyInfo.getKeySpec() path; impact is availability-only (CPU/time exhaustion) with no confidentiality or integrity effect, and the assessed severity is moderate (CVSS 3.1 5.3, A:L). No public exploit code has been identified at time of analysis and there is no confirmed active exploitation (CISA KEV) information for this issue.

RemediationAI

Vendor-released patch: upgrade Bouncy Castle for Java to 1.86 or later, and Bouncy Castle for Java LTS to 2.73.13 or later, per the advisory at https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9097873; the fix rejects negative or over-limit iteration counts during both parameter parsing and key derivation and no longer narrows out-of-int-range values with intValue(). As a compensating control on versions that cannot be upgraded immediately, set the org.bouncycastle.pbe.max_iteration_count system property to a low value (for example 100,000) so that oversized counts are refused before derivation - note this bound also applies to legitimate PBKDF2 and PBE workloads, so extremely high-iteration keystores or vendor-issued encrypted keys may fail to decrypt and must be tested before rollout. Additionally, avoid feeding untrusted PKCS#12 PBEParameter/PKCS12PBEParams blobs or untrusted encrypted private keys (including via javax.crypto.EncryptedPrivateKeyInfo.getKeySpec()) directly into the BC provider, and instead validate or whitelist the iteration count at the application boundary before invoking Bouncy Castle; restricting such inputs to trusted keystores eliminates the exposure path entirely. No vendor-released patch is absent - patched versions exist - and no public exploit code has been identified at time of analysis, so remediation can be scheduled as routine maintenance rather than emergency response.

Affected VersionsENISA

BC-JAVA 0 <1.86
BC-LTS-JAVA 2.73.0 <2.73.13

Affected Packages

euvd bc_java fix: 1.86
euvd bc_lts_java fix: 2.73.13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected code is the raw JCA provider in Legion of the Bouncy Castle Inc.'s bc-java and bc-lts-java libraries (CPE cpe:2.3:a:legion_of_the_bouncy_castle_inc.:bc-java and :bc-lts-java). Bouncy Castle implements legacy password-based encryption families: PBES1 from PKCS#5 scheme 1 and the PKCS#12 PBE schemes, whose AlgorithmParameters implementations (PKCS12PBE plus its OID aliases, and PBKDF1) decode an encoded PKCS12PBEParams or PBEParameter structure containing an iteration count. The root cause maps to CWE-770 (Allocation of Resources Without Limits or Throttling): the parser used intValue() to narrow a value that could exceed the int range, and neither the parser nor the Cipher, Mac, and SecretKeyFactory implementations in these families validated the count against any maximum, so key derivation looped as many times as the input dictated. Because these AlgorithmParameters can be instantiated from encoded parameters produced by any provider, the flaw is reachable even when the attacker's parameters are decoded by a different JCA implementation, notably via javax.crypto.EncryptedPrivateKeyInfo.getKeySpec() decrypting a PKCS#12 PBE-protected private key with BC. The fix adds validation under the existing org.bouncycastle.pbe.max_iteration_count system property (default 10,000,000), the same bound previously introduced for PBKDF2 in CVE-2026-17508: negative or over-limit counts are now rejected during both parsing and derivation, and counts beyond the int range are rejected rather than narrowed.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (bcorg) PRIMARY 5.3 MEDIUM
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
vuln.today AI 4.3 MEDIUM

Malicious input is network-deliverable (AV:N, AC:L, PR:N) but the victim app must process it (UI:R), and impact is CPU exhaustion only (A:L, C/I:N, S:U).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Primary rating from Vendor (bcorg).

CVSS VectorVendor: bcorg

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 03, 2026 - 09:16 EUVD
CVE Published
Oct 03, 2026 - 08:04 cve.org
MEDIUM 5.3

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 84% exploitable
Prevalence
High
Bouncy Castle is a widely deployed Java cryptography provider across enterprise applications
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server 16.0 Affected
SUSE Linux Enterprise Server 16.1 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy