Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-12194: CWE-400 Uncontrolled Resource Consumption in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS

0
Medium
VulnerabilityCVE-2025-12194cvecve-2025-12194cwe-400
Published: Fri Oct 24 2025 (10/24/2025, 22:51:36 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: Bouncy Castle for Java FIPS

Description

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.

AI-Powered Analysis

AILast updated: 10/24/2025, 23:20:49 UTC

Technical Analysis

CVE-2025-12194 is a medium severity vulnerability classified under CWE-400 (Uncontrolled Resource Consumption) affecting Legion of the Bouncy Castle Inc.'s Bouncy Castle for Java FIPS and LTS cryptographic libraries. The vulnerability arises from excessive memory allocation in multiple native cryptographic engine and digest implementations, including AES modes (CFB, GCM, CBC, CTR, CCM, GCMSIV) and SHA digests (SHA-256, SHA-224, SHA-3, SHA-512, SHA-384, SHAKE). These components are implemented in Java files targeting JDK 1.9 and are part of the core cryptographic processing pipeline. The flaw allows an attacker with local access to trigger excessive resource allocation, potentially leading to denial of service by exhausting memory or CPU resources. The CVSS 4.0 vector indicates low attack vector (local), low attack complexity, no privileges required, no user interaction, and partial impact on availability due to high resource consumption. The vulnerability affects all API modules in the specified versions (FIPS 2.1.0 through 2.1.1 and LTS 2.73.0 through 2.73.7). No public exploits or patches are currently available, but the issue is published and should be addressed promptly. The vulnerability does not compromise cryptographic confidentiality or integrity but can disrupt services relying on these cryptographic operations, including secure communications, authentication, and data protection mechanisms.

Potential Impact

For European organizations, the impact primarily involves potential denial of service conditions in applications and services that rely on the affected Bouncy Castle Java FIPS and LTS libraries for cryptographic functions. This can affect financial institutions, government agencies, healthcare providers, and critical infrastructure operators that use Java-based security modules for encryption, digital signatures, or secure communications. Excessive resource consumption can degrade system performance, cause application crashes, or lead to unavailability of security services, thereby impacting business continuity and compliance with data protection regulations such as GDPR. Since Bouncy Castle is widely used in open-source and commercial Java applications, the scope of affected systems can be broad, especially in sectors with heavy Java adoption. The lack of known exploits reduces immediate risk, but the vulnerability's presence in core cryptographic libraries necessitates urgent mitigation to prevent potential exploitation by insiders or malware with local access.

Mitigation Recommendations

1. Monitor and audit resource usage of Java applications using Bouncy Castle libraries to detect abnormal memory or CPU consumption patterns. 2. Apply strict runtime limits on cryptographic operations, such as timeouts and memory caps, to prevent resource exhaustion. 3. Restrict local access to systems running vulnerable versions to trusted personnel only, minimizing the attack surface. 4. Stay informed about official patches or updates from Legion of the Bouncy Castle Inc. and plan timely upgrades to versions beyond 2.1.1 (FIPS) and 2.73.7 (LTS) once released. 5. Implement application-level input validation to limit the size and complexity of cryptographic requests that could trigger excessive allocation. 6. Use containerization or sandboxing to isolate cryptographic processes and limit the impact of resource exhaustion. 7. Conduct penetration testing and fuzzing focused on cryptographic API usage to identify potential exploitation vectors. 8. Review and harden access controls and logging to detect and respond to suspicious local activity that might exploit this vulnerability.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
bcorg
Date Reserved
2025-10-24T20:54:20.444Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 68fc063ff816635ddaf2f2dd

Added to database: 10/24/2025, 11:05:35 PM

Last enriched: 10/24/2025, 11:20:49 PM

Last updated: 10/25/2025, 9:57:05 AM

Views: 19

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats