CVEfocus › CVE database › CVE-2026-13505

CVE-2026-13505Zeroisation of sensitive key material on garbage collection relies on finalization

CVSS 8.7 HighEPSS 0.4% (higher than 29% of CVEs)Published 2026-08-08Updated 2026-08-10Assigner: bcorg

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.

CWE-772

What to do

Fixed builds are available from Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
6Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10bouncycastleFix pendingUBUNTU-CVE-2026-13505
Ubuntu 26.04bouncycastleUnder investigationUBUNTU-CVE-2026-13505
Ubuntu 24.04bouncycastleFix pendingUBUNTU-CVE-2026-13505
Ubuntu 22.04bouncycastleFix pendingUBUNTU-CVE-2026-13505
Ubuntu 20.04bouncycastleFix pendingUBUNTU-CVE-2026-13505
Ubuntu 18.04bouncycastleFix pendingUBUNTU-CVE-2026-13505
Ubuntu 16.04bouncycastleFix pendingUBUNTU-CVE-2026-13505
Maven libraryorg.bouncycastle:bc-fipsFixed2.0.2GHSA-98j2-6v39-78w8

What the vendor says

As published in the CVE record by bcorg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.