Vulnerability · Published Aug 22, 2025 · Assigned by bcorg
CVE-2025-9340native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.
None 0.0
In plain English
A out-of-bounds write in Bouncy Castle for Java 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 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.bouncycastle:bc-fips | 2.1.1 | GHSA-g6rx-6wfx-gj74 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Legion of the Bouncy Castle Inc. | Bouncy Castle for Java | BC-FJA 2.1.0 – through 2.1.0 |
Weakness: CWE-787 · Vector: CVSS:4.0/AV:P/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N/S:N/R:U/RE:M/U:Green