{"id":"CVE-2025-9341","state":"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.","publishedAt":"2025-08-22T09:09:17.111Z","updatedAt":"2025-10-24T22:40:33.075Z","severity":{"score":5.9,"label":"Medium","version":"4.0","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","source":"bcorg"},"assigner":"bcorg","products":["Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS","Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS"],"affected":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"Bouncy Castle for Java FIPS","packageName":"bc-fips","defaultStatus":"unaffected","versions":[{"version":"2.1.0","status":"affected","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["org/bouncycastle/crypto/fips/AESNativeCBC.java"],"repo":"ssh://bcgit@git.bouncycastle.org:bc-fips-2.1.X-java.git"},{"vendor":"Legion of the Bouncy Castle Inc.","product":"Bouncy Castle for Java LTS","packageName":"bcprov-lts8on","defaultStatus":"unaffected","versions":[{"version":"2.73.0","status":"affected","lessThanOrEqual":"2.73.7","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["org/bouncycastle/crypto/engines/AESNativeCBC.java"],"repo":"https://github.com/bcgit/bc-lts-java"}],"references":["https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909341"],"weaknesses":["CWE-400"],"ingestedAt":"2026-10-29T20:10:13.529Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/9xxx/CVE-2025-9341.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-9341","state":"PUBLISHED","datePublished":"2025-08-22T09:09:17.111Z","dateUpdated":"2025-10-24T22:40:33.075Z","assignerShortName":"bcorg","assignerOrgId":"91579145-5d7b-4cc5-b925-a0262ff19630","dateReserved":"2025-08-22T08:45:19.734Z"},"containers":{"cna":{"title":"Garbage collection can delay for AES CBC Native support, resulting in heap exhaustion","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"Bouncy Castle for Java FIPS","packageName":"bc-fips","defaultStatus":"unaffected","versions":[{"version":"2.1.0","status":"affected","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["org/bouncycastle/crypto/fips/AESNativeCBC.java"],"repo":"ssh://bcgit@git.bouncycastle.org:bc-fips-2.1.X-java.git"},{"vendor":"Legion of the Bouncy Castle Inc.","product":"Bouncy Castle for Java LTS","packageName":"bcprov-lts8on","defaultStatus":"unaffected","versions":[{"version":"2.73.0","status":"affected","lessThanOrEqual":"2.73.7","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["org/bouncycastle/crypto/engines/AESNativeCBC.java"],"repo":"https://github.com/bcgit/bc-lts-java"}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909341"}],"metrics":[{"cvssV4_0":{"Automatable":"NO","Recovery":"USER","Safety":"PRESENT","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":5.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"AMBER","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"CONCENTRATED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"MODERATE"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","description":"CWE-400 Uncontrolled Resource Consumption","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"bcorg","orgId":"91579145-5d7b-4cc5-b925-a0262ff19630","dateUpdated":"2025-10-24T22:40:33.075Z"},"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Vulnerability requires rapid creation of short term native CBC services. Issue appears to only occur with some versions of the JVM garbage collector."}],"value":"Vulnerability requires rapid creation of short term native CBC services. Issue appears to only occur with some versions of the JVM garbage collector."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:legion_of_the_bouncy_castle_inc.:bouncy_castle_for_java_fips:2.1.0:*:all:*:*:*:*:*","vulnerable":true}],"negate":false,"operator":"OR"},{"cpeMatch":[{"criteria":"cpe:2.3:a:legion_of_the_bouncy_castle_inc.:bouncy_castle_for_java_lts:*:*:all:*:*:*:*:*","versionEndIncluding":"2.73.7","versionStartIncluding":"2.73.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"OR"}],"impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","value":"CAPEC-130 Excessive Allocation"}]}],"source":{"discovery":"EXTERNAL"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"A system that cannot be updated can be made safe by booting the module in java mode and disabling AES-NI support."}],"value":"A system that cannot be updated can be made safe by booting the module in java mode and disabling AES-NI support."}],"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-08-22T10:37:49.400627Z","id":"CVE-2025-9341","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-08-22T10:38:07.000Z"}}]}}}