Bouncy Castle Java CVE-2025-12194
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach affected AES/SHA native API locally
-
DeliverySupply crafted oversized input/parameters
-
ExploitTrigger excessive memory allocation
-
ExecutionExhaust process memory
-
ImpactDenial 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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.
Primary rating from Vendor (91579145-5d7b-4cc5-b925-a0262ff19630).
CVSS VectorVendor: 91579145-5d7b-4cc5-b925-a0262ff19630
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- 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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
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
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
NVD
CVE.org
EPSS
GitHub
Exploit-DB