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.

Severity (CVSS 4.0)5.9Medium
Exploit odds (30 days)0.2%top 94.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Mavenorg.bouncycastle:bc-fips2.1.1GHSA-jfcv-jv9g-2vx2
Mavenorg.bouncycastle:bctls-fips2.73.8GHSA-jfcv-jv9g-2vx2

Affected products (as reported)

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

References