Bouncy Castle for Java <=1.85: Lazy ASN.1 Sequence Nesting-depth Violation
CVE-2026-13506 Published on August 3, 2026

Lazy ASN.1 sequence forcing resets nesting-depth guard
In Bouncy Castle for Java before 1.85, Lazy ASN.1 sequence forcing resets nesting-depth guard. 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).

Vendor Advisory NVD

Vulnerability Analysis

CVE-2026-13506 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 does not properly control the amount of recursion which takes place, consuming excessive resources, such as allocated memory or the program stack.

CVE-2026-13506 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: