cve.bz

CVE-2026-13505 legion of the bouncy castle inc. bc-fja

8.7 highEPSS 0.4%Fix available

High (8.7) in legion of the bouncy castle inc. bc-fja. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in org.bouncycastle:bc-fips 1.0.2.7, 2.0.2, 2.1.3.

On this page
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.

Severity

CVSS 4.0

8.7 high
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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 38th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-08-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-772 Missing Release of Resource after Effective Lifetime
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • org.bouncycastle:bc-fips (Maven): fixed in 1.0.2.7, 2.0.2, 2.1.3

Ask an AI about this CVE

Show the promptExplain CVE-2026-13505 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-13505?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-13505?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-13505 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Legion of the Bouncy Castle Inc. BC-FJAfrom 1.0.0 before 1.0.2.7
Legion of the Bouncy Castle Inc. BC-FJAfrom 2.0.0 before 2.0.2
Legion of the Bouncy Castle Inc. BC-FJAfrom 2.1.0 before 2.1.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-98j2-6v39-78w8Mavenorg.bouncycastle:bc-fips<1.0.2.71.0.2.7
GHSA-98j2-6v39-78w8Mavenorg.bouncycastle:bc-fips>=2.0.0 <2.0.22.0.2
GHSA-98j2-6v39-78w8Mavenorg.bouncycastle:bc-fips>=2.1.0 <2.1.32.1.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu26.04:LTS, 26.10, Pro:16.04:LTS and 4 morebouncycastleno fix listedUBUNTU-CVE-2026-13505

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important flaw in Bouncy Castle for Java FIPS (BC-FJA) affecting Red Hat products running on Java 9 and later. Sensitive cryptographic key material may remain in memory longer than intended due to delayed zeroisation, increasing the window for information disclosure. This persistence also risks denial of service under load, as objects awaiting finalization can accumulate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat JBoss Enterprise Application Platform Expansion Packbc-fipsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-13505.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON