Description
In Bouncy Castle for Java before 1.85, HSS public-key level count unbounded, enabling huge allocation on verify. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).
Published: 2026-08-03
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In Bouncy Castle for Java, the public-key level count for HSS keys is unbounded in versions prior to 1.85, 2.73.12 and 2.0.2/2.1.3. The unbounded count allows an attacker to supply a key that forces the library to allocate a huge amount of memory during verification, leading to resource exhaustion and potential denial of service. The weakness is an instance of uncontrolled resource consumption (CWE‑789).

Affected Systems

Affected products include Bouncy Castle for Java (BC‑JAVA) versions before 1.85, Bouncy Castle for Java LTS (BC‑LTS‑JAVA) versions before 2.73.12, and Bouncy Castle for Java FIPS (BC‑FJA) versions before bc‑fips 2.0.2 and 2.1.3. These are used by Java applications that rely on HSS key verification.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity. The EPSS score is not available, so the exact exploit probability cannot be quantified, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector involves an attacker supplying a malicious HSS public key to an application that performs verification; this can be achieved through certificate validation or any process that accepts external keys. If the verifier runs with full privileges, the allocation can starve the JVM, leading to crashes or severe slowdown. Administrators should assume the vulnerability is exploitable if the library is actively used for key verification.

Generated by OpenCVE AI on August 3, 2026 at 08:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Bouncy Castle Java 1.85 or newer, Bouncy Castle Java LTS 2.73.12 or newer, or Bouncy Castle FIPS 2.0.2/2.1.3 or newer.
  • If an upgrade is not immediately possible, disable or remove usage of HSS key verification in the application, or ensure that keys are validated against a strict length limit before calling the library.
  • Apply JVM memory limits and monitor for out‑of‑memory conditions to mitigate the impact of an unpatched allocation flaw.

Generated by OpenCVE AI on August 3, 2026 at 08:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 03 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java
Vendors & Products Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java

Mon, 03 Aug 2026 06:45:00 +0000


Mon, 03 Aug 2026 02:45:00 +0000

Type Values Removed Values Added
Description In Bouncy Castle for Java before 1.85, HSS public-key level count unbounded, enabling huge allocation on verify. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).
Title HSS public-key level count unbounded, enabling huge allocation on verify
Weaknesses CWE-789
References
Metrics cvssV4_0

{'score': 8.7, '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'}


Subscriptions

Legion Of The Bouncy Castle Inc. Bc-fja Bc-java Bc-lts-java
cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-08-03T15:34:42.170Z

Reserved: 2026-06-28T01:21:46.334Z

Link: CVE-2026-58060

cve-icon Vulnrichment

Updated: 2026-08-03T15:34:36.648Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-08-03T03:16:45.340

Modified: 2026-08-04T14:50:12.360

Link: CVE-2026-58060

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:52:15Z

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value