{"answers":{"affected":"4 open source packages ship an affected version, including org.bouncycastle:bc-fips and org.bouncycastle:bctls-fips.","exploited":"There is no known exploitation of CVE-2025-9341 in the wild and no public exploit code.","fix":"Upgrade org.bouncycastle:bc-fips to 2.1.1 or later.","what":"CVE-2025-9341 is a medium-severity denial of service vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS, published on 22 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-9341 and fix it if it is affected.\n\nWhat it is: CVE-2025-9341 is a medium-severity denial of service vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java FIPS, published on 22 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-9341 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.bouncycastle:bc-fips (Maven): affected from 2.1.0; fixed in 2.1.1\n- org.bouncycastle:bc-fips (Maven): affected from 2.1.0; fixed in 2.1.1\n- org.bouncycastle:bctls-fips (Maven): affected from 2.73.7; fixed in 2.73.8\n- org.bouncycastle:bctls-fips (Maven): affected from 2.73.7; fixed in 2.73.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-9341/ (Markdown: https://insights.sbomify.com/CVE-2025-9341/index.md)","id":"CVE-2025-9341","markdown":"https://insights.sbomify.com/CVE-2025-9341/index.md","name":"CVE-2025-9341","record":{"aliases":["GHSA-jfcv-jv9g-2vx2"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java cryptography library","requires_auth":"none","summary":"Attackers can cause heap exhaustion and denial of service in Bouncy Castle Java libraries via delayed garbage collection in AES CBC native support.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"bcorg","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Garbage collection can delay for AES CBC Native support, resulting in heap exhaustion","id":"CVE-2025-9341","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":4,"n_references":1,"next":{"headline":"IDOR in Anadolu Hayat Emeklilik's AHE Mobile","id":"CVE-2025-9342"},"packages":[{"ecosystem":"Maven","fixed":["2.1.1"],"introduced":["2.1.0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":null,"source":"GHSA-jfcv-jv9g-2vx2"},{"ecosystem":"Maven","fixed":["2.1.1"],"introduced":["2.1.0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":"pkg:maven/org.bouncycastle/bc-fips","source":"GHSA-jfcv-jv9g-2vx2"},{"ecosystem":"Maven","fixed":["2.73.8"],"introduced":["2.73.7"],"last_affected":[],"package":"org.bouncycastle:bctls-fips","purl":null,"source":"GHSA-jfcv-jv9g-2vx2"},{"ecosystem":"Maven","fixed":["2.73.8"],"introduced":["2.73.7"],"last_affected":[],"package":"org.bouncycastle:bctls-fips","purl":"pkg:maven/org.bouncycastle/bctls-fips","source":"GHSA-jfcv-jv9g-2vx2"}],"prev":{"headline":"native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.","id":"CVE-2025-9340"},"products":["Bouncy Castle for Java FIPS","Bouncy Castle for Java LTS"],"published":"2025-08-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-24","vendors":["Legion of the Bouncy Castle Inc."]},"summary":"Attackers can cause heap exhaustion and denial of service in Bouncy Castle Java libraries via delayed garbage collection in AES CBC native support.","url":"https://insights.sbomify.com/CVE-2025-9341/"}