Vulnerability · Published Aug 22, 2025 · Assigned by bcorg
CVE-2025-9341Garbage collection can delay for AES CBC Native support, resulting in heap exhaustion
Medium 5.9
In plain English
A medium-severity uncontrolled resource consumption in Bouncy Castle for Java FIPS from Legion of the Bouncy Castle Inc.. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 org/bouncycastle/crypto/fips/AESNativeCBC.Java, org/bouncycastle/crypto/engines/AESNativeCBC.Java. This issue affects Bouncy Castle for Java FIPS: 2.1.0; Bouncy Castle for Java LTS: from 2.73.0 through 2.73.7.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.bouncycastle:bc-fips | 2.1.1 | GHSA-jfcv-jv9g-2vx2 |
| Maven | org.bouncycastle:bctls-fips | 2.73.8 | GHSA-jfcv-jv9g-2vx2 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Legion of the Bouncy Castle Inc. | Bouncy Castle for Java FIPS | 2.1.0 |
| Legion of the Bouncy Castle Inc. | Bouncy Castle for Java LTS | 2.73.0 – through 2.73.7 |
Weakness: CWE-400 · Vector: 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