CVE-2026-13506 Details
Description
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).
A vulnerability exists in Bouncy Castle for Java in versions prior to 1.85, as well as in the LTS version prior to 2.73.12 and in the FIPS versions 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series). The issue arises in the lazy parsing of ASN.1 sequences, where the parser improperly manages the nesting depth, potentially leading to a StackOverflowError when processing deeply nested sequences. This flaw allows crafted input to bypass the library's depth limits, causing a stack overflow error during parsing.
Users can upgrade to Bouncy Castle for Java version 1.85 or later, or to version 2.73.12 or later for the LTS release. For the FIPS versions, upgrade to 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) or 2.1.3 (2.1.X series).
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/bcgit/bc-java/commit/77454da9b3dcaaa2991412d1c3c1a6e1a338ff84 | bcorg | Patch |
| https://github.com/bcgit/bc-java/wiki/CVE-2026-13506 | bcorg | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | bcorg |
Affected Products
| Product | Versions |
|---|---|
| bouncycastle bc-java | < 1.85 |
CPE
Remediation
| |
| bouncycastle bouncy castle for java lts | <= 2.73.11 |
CPE
Remediation
| |
| bouncycastle fips java api | >= 1.0.0, < 1.0.2.7 >= 2.0.0, < 2.0.2 >= 2.1.0, < 2.1.3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 28, 2026 | Initial Analysis | [email protected] |
| Aug 3, 2026 | CVE Modified | CISA-ADP |
| Aug 3, 2026 | New CVE Received | bcorg |