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).
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.
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:- Version 1.65 and below 1.85 is affected.
- Version 2.73.0 and below 2.73.12 is affected.
- Version 2.0.0 and below 2.0.2 is affected.
- Version 2.1.0 and below 2.1.3 is affected.