Skip to main content

Bouncy Castle Java CVE-2025-12194

MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2025-10-24 91579145-5d7b-4cc5-b925-a0262ff19630
5.9
CVSS 4.0 · Vendor: 91579145-5d7b-4cc5-b925-a0262ff19630
View

Attack ChainAIDerived

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

  1. Access
    Reach affected AES/SHA native API locally
  2. Delivery
    Supply crafted oversized input/parameters
  3. Exploit
    Trigger excessive memory allocation
  4. Execution
    Exhaust process memory
  5. Impact
    Denial of service / crash

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption 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

Exploitation requires the embedding Java application to be using Bouncy Castle's JDK 1.9+ NATIVE cipher/digest engines (the AESNative* and *NativeDigest classes under core/src/main/jdk1.9) in the affected FIPS (2.1.0-2.1.1) or LTS (2.73.0-2.73.7) builds, AND to pass attacker-influenced input into those routines such that an uncontrolled allocation is triggered. Limiting factors: the vector is LOCAL (AV:L) not network, and carries an explicit attack requirement (AT:P), so the attacker must already be able to deliver crafted input to the vulnerable native code path on the host; impact is availability-only (process/service DoS) with no data disclosure or modification. Applications not using the native engine variants, or on versions outside the stated ranges, are not affected.

Impact

This is a genuine but modest-priority issue best characterized as a local denial-of-service (CWE-400, Uncontrolled Resource Consumption / Excessive Allocation) in Bouncy Castle's native-accelerated AES and SHA implementations. The multi-source signals are mutually consistent and all point to LOW real-world urgency: the vendor CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N) yields only 5.9 (Medium), with impact confined entirely to availability of the vulnerable system (VA:H) and zero confidentiality or integrity impact (VC:N/VI:N). EPSS is 0.16% (4th percentile), among the lowest exploitation-probability bands, and there is no CISA KEV listing and no public POC in the provided data - so exploitation status is 'no public exploit identified at time of analysis.' Two signals temper the raw score in opposite directions and should be noted: (1) the vector carries AT:P (a specific attack requirement/precondition must be met) and AV:L (local), meaning this is NOT a trivially remote-triggerable flaw - it requires the embedding application to feed attacker-influenced input into the affected native code paths; (2) conversely, PR:N means no authentication is required at the library boundary. Net: this is a real, patch-worthy robustness bug for availability-sensitive services using the FIPS/LTS native engines, but it is not an emergency - it is a high-CVSS-relative-to-impact-type issue that defenders should remediate on a normal patch cadence, not an out-of-band one.

Exploit ScenarioDerived

An application uses Bouncy Castle FIPS (bc-fips) or LTS (bcprov-lts8on) with the JDK 1.9+ native AES/SHA engines and passes untrusted, attacker-influenced input (e.g., crafted length/parameter values) into these cipher or digest routines. The native code performs an excessive memory allocation driven by that input, exhausting heap/native memory and crashing or hanging the host process, causing denial of service. No public exploit code is identified at time of analysis, and the local attack vector (AV:L) plus attack requirement (AT:P) mean the attacker must be able to supply input that reaches the affected API on the local system.

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

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

Alert me

AnalysisAIv1 – Oct 18, 2026

Local denial of service in Bouncy Castle for Java FIPS (bc-fips 2.1.0 through 2.1.1) and Bouncy Castle for Java LTS (bcprov-lts8on 2.73.0 through 2.73.7): the JDK 1.9+ native-accelerated AES and SHA engine classes can be driven into an uncontrolled/excessive allocation by crafted input, exhausting heap or native memory and terminating the hosting JVM or degrading the service. The assessed vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - unauthenticated but local, availability-only impact, with an explicit attack prerequisite (AT:P in the CVE's CVSS 4.0 vector) meaning the attacker must already be able to route crafted input into the vulnerable native code path. Only applications that actually use the AESNative*/NativeDigest engine variants inside the stated version ranges are exposed; no public exploit code has been identified at time of analysis and EPSS is low (0.16%, 4th percentile).

RemediationAI

Upgrade to a fixed Bouncy Castle build per the vendor advisory at https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9012194; the provided data confirms the vulnerable ranges (bc-fips 2.1.0-2.1.1 and bcprov-lts8on 2.73.0-2.73.7) but does not state the exact fixed version numbers, so verify the corrected FIPS/LTS release on that page before pinning. If an immediate upgrade is not possible, the most direct mitigation is to stop routing untrusted input through the native engines: register and use the pure-Java providers and engine classes (for example AESEngine/AESEngine in GCM mode and the standard SHA digests instead of the AESNative*/NativeDigest variants) - the trade-off is lower throughput and higher CPU cost on bulk crypto, and a re-validation effort if the deployment is FIPS-certified. In addition, bound the size and parameter ranges of data accepted into cryptographic routines at the application boundary (cap message/plaintext lengths and reject out-of-range cipher parameters before the call), and contain the blast radius with a bounded JVM heap (-Xmx) plus container/cgroup memory limits and OOM alerting, accepting that the process may still be killed but the host will not be. Restricting local access to the host and to any service that feeds attacker-controlled data into these routines reduces the attack surface, since the assessed vector is local.

Affected Packages

maven org.bouncycastle:bc-fips fix: 2.1.2
maven org.bouncycastle:bcprov-debug-lts8on fix: 2.73.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven

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

Technical ContextAI · show details

Bouncy Castle ships native (JNI-backed) implementations of its cipher and digest primitives alongside the pure-Java ones. The affected classes live in the JDK 1.9+ source set - org.bouncycastle.crypto.engines.AESNativeEngine, AESNativeCBC, AESNativeCTR, AESNativeCFB, AESNativeGCM, AESNativeGCMSIV and AESNativeCCM, plus org.bouncycastle.crypto.digests.SHA224/SHA256/SHA384/SHA512/SHA3/SHAKE NativeDigest, and their FIPS-package counterparts (org.bouncycastle.crypto.fips.*) in bc-fips. These wrappers marshal data across the JNI boundary and size native/heap buffers for the operation. The CWE-400 (Uncontrolled Resource Consumption) root cause is that allocation sizing driven by attacker-influenced input is not adequately bounded, so an Excessive Allocation (CWE-789-style pattern) can be induced before the operation completes. Because the defect sits in the native engine selection path, exposure is conditional: an embedding application must be configured to use the *Native* providers rather than the pure-Java engines, and must pass attacker-influenced data or parameters into those routines. Impact is confined to availability (memory exhaustion causing OutOfMemoryError, native allocation failure, or process/JVM termination); there is no confidentiality or integrity impact.

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 (91579145-5d7b-4cc5-b925-a0262ff19630) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/S:P/AU:N/R:U/V:C/RE:M/U:Amber
vuln.today AI 6.2 MEDIUM

Local input-driven resource exhaustion with no auth (AV:L/PR:N), availability-only impact (A:H, C:N/I:N); AC:L since allocation is deterministic once crafted input reaches the native API.

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

Primary rating from Vendor (91579145-5d7b-4cc5-b925-a0262ff19630).

CVSS VectorVendor: 91579145-5d7b-4cc5-b925-a0262ff19630

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules), Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS bcprov-lts8on on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files core/src/main/jdk1.9/org/bouncycastle/crypto/fips/AESNativeCFB.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/fips/AESNativeGCM.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/fips/SHA256NativeDigest.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/fips/AESNativeEngine.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/fips/AESNativeCBC.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/fips/AESNativeCTR.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/engines/AESNativeCFB.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/engines/AESNativeGCM.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/engines/AESNativeEngine.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/engines/AESNativeCBC.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/engines/AESNativeGCMSIV.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/engines/AESNativeCCM.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/engines/AESNativeCTR.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/digests/SHA256NativeDigest.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/digests/SHA224NativeDigest.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/digests/SHA3NativeDigest.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/digests/SHAKENativeDigest.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/digests/SHA512NativeDigest.Java, core/src/main/jdk1.9/org/bouncycastle/crypto/digests/SHA384NativeDigest.Java.

This issue affects Bouncy Castle for Java FIPS: from 2.1.0 through 2.1.1; Bouncy Castle for Java LTS: from 2.73.0 through 2.73.7.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 80 maven packages depend on org.bouncycastle:bc-fips (4 direct, 77 indirect)

Ecosystem-wide dependent count for version 2.1.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 96% exploitable
Prevalence
High
Bouncy Castle is a ubiquitous Java crypto library; FIPS/LTS native variants are widely deployed in enterprise
Data Quality
4 sources
Confidence: Medium

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.2%
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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

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