CVE-2026-58060

Legion of the Bouncy Castle Inc. · BC-JAVA

Bouncy Castle for Java is vulnerable to memory allocation errors involving excessive size values, which may be exploited by unauthenticated attackers to cause a denial of service.

Executive summary

An unauthenticated remote denial of service vulnerability exists in the Bouncy Castle cryptographic library due to improper handling of excessive memory allocation requests.

Vulnerability

This is a memory allocation vulnerability (CWE-789) that allows an unauthenticated attacker to force the application to request excessive memory, leading to potential service failure.

Business impact

The ability for an unauthenticated attacker to remotely trigger a denial of service makes this a high-risk issue. Successful exploitation would lead to system downtime, impacting any business processes that rely on the affected Bouncy Castle components. The CVSS score of 8.7 reflects the severity and the ease with which this can be exploited.

Remediation

Immediate Action: Update the Bouncy Castle library to the latest version to ensure proper memory management is enforced.

Proactive Monitoring: Monitor application logs and system memory metrics for signs of abnormal allocation patterns or unexpected service restarts.

Compensating Controls: Utilize Web Application Firewalls (WAF) or other traffic filtering mechanisms to inspect incoming requests for anomalous data structures that might trigger this flaw.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

This vulnerability presents a clear risk to service availability. Organizations should move quickly to patch their Bouncy Castle implementations to prevent potential abuse by remote actors.