{"id":"CVE-2025-9340","aliases":["EUVD-2025-25505","GHSA-g6rx-6wfx-gj74"],"status":"published","title":"native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.","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.\n\nThis issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.","severity":{"version":"4.0","score":0,"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","level":"none","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00177,"percentile":0.0736,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2025-08-22T09:39:47Z","modified":"2026-06-17T10:08:46Z","fixes":[{"ecosystem":"Maven","package":"org.bouncycastle:bc-fips","fixed_in":["2.1.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.bouncycastle:bc-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0"},{"last_affected":"2.1.0"},{"fixed":"2.1.1"}]}],"versions":["2.1.0"]},{"source":"osv","ecosystem":"Maven","package":"org.bouncycastle:bc-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0"},{"fixed":"2.1.1"}]}],"versions":["2.1.0"]}],"products":[{"vendor":"legion of the bouncy castle inc.","product":"bouncy castle for java"}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909340","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9340","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-g6rx-6wfx-gj74"},{"url":"https://github.com/bcgit/bc-java","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-9340","title":"native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.","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.\n\nThis issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.","status":"published","published":"2025-08-22T09:39:47.303Z","modified":"2025-08-22T10:37:18.585Z","cvss":[{"version":"4.0","score":0,"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","level":"none","assessor":"cna"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:32:34.096798Z"}],"euvd":[{"id":"EUVD-2025-25505","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.\n\nThis issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.","status":"published","published":"2025-08-22T09:39:47Z","modified":"2025-08-22T10:37:18Z","cvss":[{"version":"4.0","score":0,"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","level":"none"}],"updated_at":"2026-11-02T20:31:54.537077Z"}],"ghsa":[{"id":"GHSA-g6rx-6wfx-gj74","title":"Bouncy Castle for Java has Out-of-Bounds Write Vulnerability","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.\n\nThis issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.","status":"published","published":"2025-08-22T12:30:30Z","modified":"2025-08-22T20:30:46Z","cvss":[{"version":"4.0","score":0,"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/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","level":"none"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:38:54.795089Z"}],"nvd":[{"id":"CVE-2025-9340","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.\n\nThis issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.","status":"published","published":"2025-08-22T10:15:33.05Z","modified":"2026-06-17T10:08:46.973Z","cvss":[{"version":"4.0","score":0,"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/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","level":"none","assessor":"secondary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:11:25.261243Z"}],"osv":[{"id":"GHSA-g6rx-6wfx-gj74","title":"Bouncy Castle for Java has Out-of-Bounds Write Vulnerability","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.\n\nThis issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.","status":"published","published":"2025-08-22T12:30:30Z","modified":"2025-08-22T21:27:30.751452Z","cvss":[{"version":"4.0","score":0,"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/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","level":"none"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T15:46:47.472172Z"}]}}
