What’s Vulnerable › Vulnerabilities

CVE-2026-58059: Quadratic-time escaping when stringifying X.500 distinguished names

Description

In Bouncy Castle for Java before 1.85, Quadratic-time escaping when stringifying X.500 distinguished names. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and 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).

Affected products

How to fix

Upgrade to a fixed version: Legion of the Bouncy Castle Inc. BC-JAVA 1.85; Bouncycastle Fips Java Api 1.0.2.7, 2.0.2, 2.1.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-58059 or the next vulnerability affects your stack