{"answers":{"affected":"6 open source packages ship an affected version, including org.bouncycastle:bc-fips.","exploited":"There is no known exploitation of CVE-2026-13505 in the wild and no public exploit code.","fix":"Upgrade org.bouncycastle:bc-fips to a fixed version for your release line: 1.0.2.7, 2.0.2 or 2.1.3.","what":"CVE-2026-13505 is a high-severity denial of service vulnerability in Legion of the Bouncy Castle Inc. BC-FJA, published on 8 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-13505 and fix it if it is affected.\n\nWhat it is: CVE-2026-13505 is a high-severity denial of service vulnerability in Legion of the Bouncy Castle Inc. BC-FJA, published on 8 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-13505 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.bouncycastle:bc-fips (Maven): affected all versions; fixed in 1.0.2.7\n- org.bouncycastle:bc-fips (Maven): affected all versions; fixed in 1.0.2.7\n- org.bouncycastle:bc-fips (Maven): affected from 2.0.0; fixed in 2.0.2\n- org.bouncycastle:bc-fips (Maven): affected from 2.0.0; fixed in 2.0.2\n- org.bouncycastle:bc-fips (Maven): affected from 2.1.0; fixed in 2.1.3\n- org.bouncycastle:bc-fips (Maven): affected from 2.1.0; fixed in 2.1.3\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-2026-13505/ (Markdown: https://insights.sbomify.com/CVE-2026-13505/index.md)","id":"CVE-2026-13505","markdown":"https://insights.sbomify.com/CVE-2026-13505/index.md","name":"CVE-2026-13505","record":{"aliases":["CLEANSTART-2026-KE90192","ECHO-d092-28e1-ed95","GHSA-98j2-6v39-78w8","MINI-2v35-4r5j-mhjh","MINI-3q8g-m33m-j66h","MINI-435g-9xr7-xv6x","MINI-43vj-4xrc-cgwq","MINI-59h2-349c-qj36","MINI-6r6q-5pc8-2g74","MINI-74wq-vjcv-qrc6","MINI-992h-pfvj-4fw2","MINI-c9xp-q275-pccx","MINI-hxmj-7v8w-hmxm","MINI-j5p8-qqjr-hf53","MINI-mf46-5fq8-qv3c","MINI-q935-hxrc-jrp3","MINI-rg2q-m7wv-xxrx","MINI-w5gh-26f2-4q34","ROOT-APP-MAVEN-CVE-2026-13505","UBUNTU-CVE-2026-13505"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Java cryptography library","requires_auth":"none","summary":"Attackers can cause memory exhaustion and retain sensitive keys in memory by exploiting deprecated finalization mechanisms in the Bouncy Castle FIPS Java library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"bcorg","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber","version":"4.0"},"cwes":[{"id":"CWE-772","name":"Missing Release of Resource after Effective Lifetime"}],"description":"In Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series), sensitive key material held by the AES and DESede engines, the SP 800-90A DRBGs, SymmetricSecretKey and the PBKD and scrypt parameter classes was zeroised on garbage collection by overriding Object.finalize. Finalization runs at an unspecified time and in an unspecified order and is serviced by a single finalizer thread, so where objects carrying a finalizer are allocated faster than that thread retires them the pending-finalization queue grows without bound: disposal falls arbitrarily far behind, which can contribute to an OutOfMemoryError under load, and the key material those objects hold stays resident in the heap for as long as they are queued, defeating the purpose of the zeroisation. The behaviour was not a problem on Java 8 or Java 11; it is later JVMs, on which finalization has been deprecated and progressively de-emphasised, where it becomes one. Disposal of these classes now runs from a java.lang.ref.Cleaner registered in the multi-release jdk1.9 overlay, so on Java 9 and later it no longer depends on the finalizer being scheduled. Bouncy Castle for Java (bcprov) and Bouncy Castle for Java LTS are not affected, as neither implements the finalizer-based zeroisation scheme.","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":"Zeroisation of sensitive key material on garbage collection relies on finalization","id":"CVE-2026-13505","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"Lazy ASN.1 sequence forcing resets nesting-depth guard","id":"CVE-2026-13506"},"packages":[{"ecosystem":"Maven","fixed":["1.0.2.7"],"introduced":["0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":null,"source":"GHSA-98j2-6v39-78w8"},{"ecosystem":"Maven","fixed":["1.0.2.7"],"introduced":["0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":"pkg:maven/org.bouncycastle/bc-fips","source":"GHSA-98j2-6v39-78w8"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":null,"source":"GHSA-98j2-6v39-78w8"},{"ecosystem":"Maven","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":"pkg:maven/org.bouncycastle/bc-fips","source":"GHSA-98j2-6v39-78w8"},{"ecosystem":"Maven","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":null,"source":"GHSA-98j2-6v39-78w8"},{"ecosystem":"Maven","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":"pkg:maven/org.bouncycastle/bc-fips","source":"GHSA-98j2-6v39-78w8"}],"prev":{"headline":"code-projects Project Management System Mail Compose mail.php cross site scripting","id":"CVE-2026-13504"},"products":["BC-FJA"],"published":"2026-08-08","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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-10","vendors":["Legion of the Bouncy Castle Inc."]},"summary":"Attackers can cause memory exhaustion and retain sensitive keys in memory by exploiting deprecated finalization mechanisms in the Bouncy Castle FIPS Java library.","url":"https://insights.sbomify.com/CVE-2026-13505/"}