CVE-2025-12194: Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules)

CVE-2025-12194 · Severity: medium · CVSS 4 · Published 2025-10-24

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.

Technologies: org.bouncycastle:bc-fips (Maven). Vendors: Maven.

Quick answers

Is CVE-2025-12194 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-12194 being exploited in the wild.
How severe is CVE-2025-12194?
Medium severity, with a CVSS score of 4, published 24 October 2025.
Which products and versions are affected?
org.bouncycastle:bc-fips (Maven) ECOSYSTEM:introduced=2.1.0,fixed=2.1.2; org.bouncycastle:bcprov-debug-lts8on (Maven) ECOSYSTEM:introduced=2.73.0,fixed=2.73.8.
Is there a fix for CVE-2025-12194?
Yes. org.bouncycastle:bc-fips (Maven): upgrade to 2.1.2 or later; org.bouncycastle:bcprov-debug-lts8on (Maven): upgrade to 2.73.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-12194?
Check whether you run org.bouncycastle:bc-fips (Maven) or org.bouncycastle:bcprov-debug-lts8on (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • org.bouncycastle:bc-fips (Maven): upgrade to 2.1.2 or later
    # set org.bouncycastle:bc-fips to 2.1.2 in your pom.xml or build.gradle
  • org.bouncycastle:bcprov-debug-lts8on (Maven): upgrade to 2.73.8 or later
    # set org.bouncycastle:bcprov-debug-lts8on to 2.73.8 in your pom.xml or build.gradle

Affected products

  • org.bouncycastle:bc-fips (Maven) ECOSYSTEM:introduced=2.1.0,fixed=2.1.2
  • org.bouncycastle:bcprov-debug-lts8on (Maven) ECOSYSTEM:introduced=2.73.0,fixed=2.73.8

Identifiers

  • CVE-2025-12194
  • GHSA-jv6h-4262-q663

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.