# CVE-2025-9340: native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.

- Severity: None 0.0 (CVSS:4.0, scored by bcorg) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-08-22T09:39:47.303Z
- Modified: 2026-06-17T10:08:46.973Z
- Also known as: GHSA-g6rx-6wfx-gj74
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: bcorg

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

(As written by CVE List.)

## Affected

- bc-fips: from BC-FJA 2.1.0 up to 2.1.0
- org.bouncycastle:bc-fips (Maven): from 2.1.0 before 2.1.1

## Every score

- bcorg: CVSS:4.0 0.0 None `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`
- GitHub: CVSS:4.0 Low `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:X/R:U/V:X/RE:M/U:Green`

## References

- <https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909340> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-9340> (advisory)
- <https://github.com/bcgit/bc-java> (package)

## Sources

- CVE List: [CVE-2025-9340](https://www.cve.org/CVERecord?id=CVE-2025-9340), CVE Terms of Use, modified 2025-08-22
- GitHub Advisory Database: [GHSA-g6rx-6wfx-gj74](https://github.com/advisories/GHSA-g6rx-6wfx-gj74), CC-BY-4.0, modified 2025-08-22
- NVD: [CVE-2025-9340](https://nvd.nist.gov/vuln/detail/CVE-2025-9340), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-9340 · Whole record: https://cve.day/CVE-2025-9340.json · Rebuilt by cve.day 2026-11-25T22:59:03.510Z
