{"id":"CVE-2025-9340","aliases":["CVE-2025-9340","GHSA-g6rx-6wfx-gj74"],"related":[],"kind":"vulnerability","state":"published","title":"native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Vulnerabilidad de escritura fuera de los límites en Legion of the Bouncy Castle Inc. Bouncy Castle para Java bc-fips en todos los módulos API. Esta vulnerabilidad está asociada a los archivos de programa org/bouncycastle/jcajce/provider/BaseCipher. Este problema afecta a Bouncy Castle para Java desde BC-FJA 2.1.0 hasta 2.1.0.","source":"nvd"}],"published":"2025-08-22T09:39:47.303Z","modified":"2026-06-17T10:08:46.973Z","severity":{"scorer":"bcorg","scheme":"CVSS:4.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","score":0,"rating":"NONE"},"severities":[{"scorer":"bcorg","scheme":"CVSS:4.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","score":0,"rating":"NONE"},{"scorer":"GitHub","scheme":"CVSS:4.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","rating":"LOW"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"maven","introduced":"BC-FJA 2.1.0","lastAffected":"2.1.0","status":"affected"}],"vendor":"Legion of the Bouncy Castle Inc.","product":"Bouncy Castle for Java","package":"bc-fips","repo":"ssh://bcgit@git.bouncycastle.org:bc-fips-2.1.X-java.git","platforms":["All"],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.1"}],"ecosystem":"Maven","package":"org.bouncycastle:bc-fips","purl":"pkg:maven/org.bouncycastle/bc-fips","source":"ghsa"}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909340","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9340","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bcgit/bc-java","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"bcorg","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-08-22T10:37:04.005Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-9340","url":"https://www.cve.org/CVERecord?id=CVE-2025-9340","licence":"CVE Terms of Use","modified":"2025-08-22T10:37:18.585Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g6rx-6wfx-gj74","url":"https://github.com/advisories/GHSA-g6rx-6wfx-gj74","licence":"CC-BY-4.0","modified":"2025-08-22T21:27:30.751Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-9340","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9340","licence":"Public domain","modified":"2026-06-17T10:08:46.973Z"}],"updatedAt":"2026-11-25T22:59:03.510Z","epss":{"score":0.0021,"percentile":0.11817,"date":"2026-12-01T12:00:22.000Z"}}