CVE-2025-9340native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.
- 0.0NoneCVSS base score
- 0.19%Exploitation in 30 daysEPSS · top 91% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By bcorg
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| bcorgCNA (assigner) | 4.0 | None0.0 | 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 |
| NVDNVD · Deferred | 4.0 | None0.0 | 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 |
- EPSS (exploitation in 30 days)
- 0.19% · top 91% of all CVEs (12 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: None 0.0.
Affected products
Legion of the Bouncy Castle Inc. · Bouncy Castle for Java
- affected BC-FJA 2.1.0 – ≤ 2.1.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.bouncycastle:bc-fipsGHSA-g6rx-6wfx-gj74 (opens in a new tab)
What to do
Workaround: This can be coded around by avoiding operations in place when dealing with aes-native encryption/decryption.
References
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-25505 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-g6rx-6wfx-gj74 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-9340)Record last updated .