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

Published Aug 22, 2025
·
Updated

Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files org/bouncycastle/crypto/fips/AESNativeCBC.Java.

This issue affects Bouncy Castle for Java FIPS: from BC-FJA 2.1.0 through 2.1.0.

Other sources

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.

MITRE

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: from BC-FJA 2.1.0 through 2.1.0; Bouncy Castle for Java LTS: from BC-LTS 2.73.0 through 2.73.7.

NVD

Affected Software

3 affected componentsFixes available
Bouncy Castle Bouncy Castle for Java FIPS>=2.1.0<=2.1.0
maven/org.bouncycastle:bctls-fips=2.73.7
2.73.8
maven/org.bouncycastle:bc-fips=2.1.0
2.1.1

Event History

Aug 22, 2025
CVE Published
via MITRE·09:09 AM
Data Sourced
via MITRE·09:09 AM
DescriptionWeakness
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:30 AM
Data Sourced
via GitHub·09:30 AM
DescriptionWeaknessAffected Software
Feb 28, 57989
Event
via FIRST·01:07 AM

Frequently Asked Questions

1

What is the severity of CVE-2025-9341?

The severity of CVE-2025-9341 is critical due to the potential for excessive resource allocation.

2

How do I fix CVE-2025-9341?

To fix CVE-2025-9341, you should upgrade to a version of Bouncy Castle for Java FIPS that is not affected, specifically beyond version 2.1.0.

3

What causes CVE-2025-9341?

CVE-2025-9341 is caused by uncontrolled resource consumption related to excessive allocation in the AESNativeCBC.Java files.

4

What versions of Bouncy Castle are affected by CVE-2025-9341?

CVE-2025-9341 affects Bouncy Castle for Java FIPS version 2.1.0.

5

Is CVE-2025-9341 applicable to other products besides Bouncy Castle Java FIPS?

No, CVE-2025-9341 specifically affects the Bouncy Castle for Java FIPS API modules.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203