Bouncy Castle Java <1.85: Unbounded HSS Level Count Allows Huge Allocation
CVE-2026-58060 Published on August 3, 2026

HSS public-key level count unbounded, enabling huge allocation on verify
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).

Vendor Advisory NVD

Vulnerability Analysis

CVE-2026-58060 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity and availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE

Weakness Type

What is a Stack Exhaustion Vulnerability?

The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.

CVE-2026-58060 has been classified to as a Stack Exhaustion vulnerability or weakness.


Affected Versions

Legion of the Bouncy Castle Inc. BC-JAVA: Legion of the Bouncy Castle Inc. BC-LTS-JAVA: Legion of the Bouncy Castle Inc. BC-FJA: