CVE-2025-9341
Garbage collection can delay for AES CBC Native support, resulting in heap exhaustion
Also known as GHSA-jfcv-jv9g-2vx2
Mitigation
- Upgrade org.bouncycastle:bc-fips to 2.1.1 or later.
- Upgrade org.bouncycastle:bctls-fips to 2.73.8 or later.
- Vendor workaround: A system that cannot be updated can be made safe by booting the module in java mode and disabling AES-NI support.
Who should check
- Projects that depend on Maven package org.bouncycastle:bc-fips (>= 2.1.0, < 2.1.1)
- Projects that depend on Maven package org.bouncycastle:bctls-fips (>= 2.73.7, < 2.73.8)
- Anyone running Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS 2.1.0
- Anyone running Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS >= 2.73.0, <= 2.73.7
Vulnerability facts
- Affected
- org.bouncycastle:bc-fips >= 2.1.0, < 2.1.1; org.bouncycastle:bctls-fips >= 2.73.7, < 2.73.8
- Fixed in
- 2.1.1, 2.73.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.9 (v4.0, CNA)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:AmberOpen in CVSS calculator
Show all 17 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- S: P
- AU: N
- R: U
- V: C
- RE: M
- U: Amber
- EPSS
- 0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
- CWE
- CWE-400
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.bouncycastle:bc-fips | >= 2.1.0, < 2.1.1 | 2.1.1 | osv |
| Maven org.bouncycastle:bctls-fips | >= 2.73.7, < 2.73.8 | 2.73.8 | osv |
| Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS | 2.1.0 | — | cvelist |
| Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS | >= 2.73.0, <= 2.73.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-9341. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-9341.md Affected: org.bouncycastle:bc-fips >= 2.1.0, < 2.1.1; org.bouncycastle:bctls-fips >= 2.73.7, < 2.73.8 Fixed in: 2.1.1, 2.73.8 Steps: 1. Search this machine and project for org.bouncycastle:bc-fips (Maven), org.bouncycastle:bctls-fips (Maven), Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS, Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-9341 being exploited?
There is no confirmed exploitation: CVE-2025-9341 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-9341?
Medium: CVSS 5.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-9341?
org.bouncycastle:bc-fips >= 2.1.0, < 2.1.1; org.bouncycastle:bctls-fips >= 2.73.7, < 2.73.8.
Is there a fix for CVE-2025-9341?
Yes. Fixed in 2.1.1, 2.73.8. Upgrade org.bouncycastle:bc-fips to 2.1.1 or later. Upgrade org.bouncycastle:bctls-fips to 2.73.8 or later. Vendor workaround: A system that cannot be updated can be made safe by booting the module in java mode and disabling AES-NI support.
How do I check if I'm affected by CVE-2025-9341?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.