CVE-2025-9340 Details
Description
Out-of-bounds Write vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java bc-fips on All (API modules). This vulnerability is associated with program files org/bouncycastle/jcajce/provider/BaseCipher. This issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.
An out-of-bounds write vulnerability has been identified in Legion of the Bouncy Castle Inc. Bouncy Castle for Java BC-FIPS, specifically in version 2.1.0. This vulnerability arises in the JCE Cipher.doFinal() method, which can unintentionally overwrite input data when the input and output arrays are the same, and the output is offset differently from the input. This misalignment can lead to the creation of corrupted encryption or decryption results.
Users can upgrade to Bouncy Castle for Java version 2.1.1 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 22, 2025CISA-ADP
Assessed Aug 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909340 | bcorg | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | bcorg |
Affected Products
| Product | Versions |
|---|---|
| Legion of the Bouncy Castle Inc. Bouncy Castle | 2.1.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | bcorg |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 22, 2025 | New CVE Received | bcorg |
Volerion