{"id":"CVE-2025-9341","aliases":["EUVD-2025-25504","GHSA-jfcv-jv9g-2vx2"],"status":"published","title":"Garbage collection can delay for AES CBC Native support, resulting in heap exhaustion","description":"Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules), Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS bcprov-lts8on on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files org/bouncycastle/crypto/fips/AESNativeCBC.Java, org/bouncycastle/crypto/engines/AESNativeCBC.Java.\n\nThis issue affects Bouncy Castle for Java FIPS: 2.1.0; Bouncy Castle for Java LTS: from 2.73.0 through 2.73.7.","severity":{"version":"4.0","score":5.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/S:P/AU:N/R:U/V:C/RE:M/U:Amber","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.0016,"percentile":0.05208,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2025-08-22T09:09:17Z","modified":"2026-10-28T02:30:48Z","fixes":[{"ecosystem":"Maven","package":"org.bouncycastle:bc-fips","fixed_in":["2.1.1"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"org.bouncycastle:bctls-fips","fixed_in":["2.73.8"],"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":"ghsa","ecosystem":"Maven","package":"org.bouncycastle:bctls-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.73.7"},{"last_affected":"2.73.7"},{"fixed":"2.73.8"}]}],"versions":["2.73.7"]},{"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"]},{"source":"osv","ecosystem":"Maven","package":"org.bouncycastle:bctls-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.73.7"},{"fixed":"2.73.8"}]}],"versions":["2.73.7"]}],"products":[{"vendor":"legion of the bouncy castle inc.","product":"bouncy castle for java fips"},{"vendor":"legion of the bouncy castle inc.","product":"bouncy castle for java lts"}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909341","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9341","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jfcv-jv9g-2vx2"},{"url":"https://repo1.maven.org/maven2/org/bouncycastle","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9341.json","tags":["advisory"]},{"url":"https://github.com/bcgit/bc-lts-java","tags":["package"]},{"url":"ssh://bcgit@git.bouncycastle.org:bc-fips-2.1.X-java.git","tags":["package"]},{"url":"https://github.com/bcgit/bc-java","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-9341","title":"Garbage collection can delay for AES CBC Native support, resulting in heap exhaustion","description":"Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules), Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS bcprov-lts8on on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files org/bouncycastle/crypto/fips/AESNativeCBC.Java, org/bouncycastle/crypto/engines/AESNativeCBC.Java.\n\nThis issue affects Bouncy Castle for Java FIPS: 2.1.0; Bouncy Castle for Java LTS: from 2.73.0 through 2.73.7.","status":"published","published":"2025-08-22T09:09:17.111Z","modified":"2025-10-24T22:40:33.075Z","cvss":[{"version":"4.0","score":5.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/S:P/AU:N/R:U/V:C/RE:M/U:Amber","level":"medium","assessor":"cna"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:32:34.096798Z"}],"euvd":[{"id":"EUVD-2025-25504","description":"Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules), Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS bcprov-lts8on on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files org/bouncycastle/crypto/fips/AESNativeCBC.Java, org/bouncycastle/crypto/engines/AESNativeCBC.Java.\n\nThis issue affects Bouncy Castle for Java FIPS: 2.1.0; Bouncy Castle for Java LTS: from 2.73.0 through 2.73.7.","status":"published","published":"2025-08-22T09:09:17Z","modified":"2025-10-24T22:40:33Z","cvss":[{"version":"4.0","score":5.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/S:P/AU:N/R:U/V:C/RE:M/U:Amber","level":"medium"}],"updated_at":"2026-11-02T19:49:37.392201Z"}],"ghsa":[{"id":"GHSA-jfcv-jv9g-2vx2","title":"Bouncy Castle for Java has Uncontrolled Resource Consumption Vulnerability","description":"Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files org/bouncycastle/crypto/fips/AESNativeCBC.Java.\n\nThis issue affects Bouncy Castle for Java FIPS: from BC-FJA 2.1.0 through 2.1.0.","status":"published","published":"2025-08-22T09:30:41Z","modified":"2025-08-22T20:30:51Z","cvss":[{"version":"4.0","score":5.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/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:P/AU:N/R:U/V:C/RE:M/U:Amber","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:38:54.795089Z"}],"nvd":[{"id":"CVE-2025-9341","description":"Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules), Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS bcprov-lts8on on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files org/bouncycastle/crypto/fips/AESNativeCBC.Java, org/bouncycastle/crypto/engines/AESNativeCBC.Java.\n\nThis issue affects Bouncy Castle for Java FIPS: 2.1.0; Bouncy Castle for Java LTS: from 2.73.0 through 2.73.7.","status":"published","published":"2025-08-22T09:15:34.41Z","modified":"2026-06-17T10:08:47.083Z","cvss":[{"version":"4.0","score":5.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/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:P/AU:N/R:U/V:C/RE:M/U:Amber","level":"medium","assessor":"secondary"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:11:25.261243Z"}],"osv":[{"id":"CVE-2025-9341","title":"Garbage collection can delay for AES CBC Native support, resulting in heap exhaustion","description":"Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules), Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS bcprov-lts8on on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files org/bouncycastle/crypto/fips/AESNativeCBC.Java, org/bouncycastle/crypto/engines/AESNativeCBC.Java.\n\nThis issue affects Bouncy Castle for Java FIPS: 2.1.0; Bouncy Castle for Java LTS: from 2.73.0 through 2.73.7.","status":"published","published":"2025-08-22T09:09:17.111Z","modified":"2026-10-28T02:30:48.960869636Z","cvss":[{"version":"4.0","score":5.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/S:P/AU:N/R:U/V:C/RE:M/U:Amber","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:44:53.490346Z"},{"id":"GHSA-jfcv-jv9g-2vx2","title":"Bouncy Castle for Java has Uncontrolled Resource Consumption Vulnerability","description":"Uncontrolled Resource Consumption vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS bc-fips on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files org/bouncycastle/crypto/fips/AESNativeCBC.Java.\n\nThis issue affects Bouncy Castle for Java FIPS: from BC-FJA 2.1.0 through 2.1.0.","status":"published","published":"2025-08-22T09:30:41Z","modified":"2025-08-22T20:57:26.252877Z","cvss":[{"version":"4.0","score":5.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/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:P/AU:N/R:U/V:C/RE:M/U:Amber","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:50.336262Z"}]}}
