Vulnerabilities in pkg:maven/org.bouncycastle/bcprov-lts8on
PACKAGECVE-2026-13506 is a HIGH (CVSS 7.5) lazy asn.1 sequence forcing resets vulnerability (CWE-674: Uncontrolled Recursion) affecting Bouncy Castle libraries in the Maven ecosystem. The issue involves lazy asn.1 sequence forcing resets nesting-depth guard. Remediation is available by upgrading affected packages to version 1.85, 1.0.2.7, 2.0.2, 2.1.3, 2.73.12.
pkg:maven/org.bouncycastle/bcprov-lts8on
Vulnerability advisories affecting package pkg:maven/org.bouncycastle/bcprov-lts8on. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-qp49-qgx5-5m26 | CVE-2026-13506 | HIGH | Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard |
| GHSA-9pwp-9qqc-pr26 | CVE-2026-8763 | CRITICAL | Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI |
| GHSA-mx76-r943-rf8g | CVE-2026-8149 | MODERATE | Bouncy Castle LTS native GCM chunking can cause bad-tag exception on decryption |
| GHSA-4h8f-2wvx-gg5w | CVE-2024-34447 | MODERATE | Bouncy Castle Java Cryptography API vulnerable to DNS poisoning |
CVE-2026-13506 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-13506
To remediate this vulnerability, upgrade all affected Bouncy Castle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.85</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bc-fips</artifactId>
<version>1.0.2.7</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bc-fips</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bc-fips</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-lts8on</artifactId>
<version>2.73.12</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15to18</artifactId>
<version>1.85</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.bouncycastle
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-13506, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.bouncycastle
Analyze the terminal output to locate any version of Bouncy Castle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.85), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.bouncycastle command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Bouncy Castle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-13506 Affected Bouncy Castle Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.bouncycastle:bcprov-jdk18on
|
Maven |
< 1.85
|
1.85
|
|
org.bouncycastle:bc-fips
|
Maven |
< 1.0.2.7
|
1.0.2.7
|
|
org.bouncycastle:bc-fips
|
Maven |
≥ 2.0.0
< 2.0.2
|
2.0.2
|
|
org.bouncycastle:bc-fips
|
Maven |
≥ 2.1.0
< 2.1.3
|
2.1.3
|
|
org.bouncycastle:bcprov-lts8on
|
Maven |
< 2.73.12
|
2.73.12
|
|
org.bouncycastle:bcprov-jdk15to18
|
Maven |
< 1.85
|
1.85
|
References
Frequently Asked Questions
What is CVE-2026-13506?
Which Bouncy Castle versions are affected?
What version fixes CVE-2026-13506?
Is bcprov-jdk18on affected?
Is bc-fips affected?
What is the CVSS score of CVE-2026-13506?
What CWE is associated with CVE-2026-13506?
How can I check Maven dependencies for CVE-2026-13506?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qp49-qgx5-5m26",
"modified" : "2026-09-18T17:37:51Z",
"published" : "2026-08-03T06:31:44Z",
"aliases" : [ "CVE-2026-13506" ],
"summary" : "Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard",
"details" : "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).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk18on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.85"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bc-fips"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bc-fips"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bc-fips"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-lts8on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.73.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk15to18"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.85"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-13506"
}, {
"type" : "WEB",
"url" : "https://github.com/bcgit/bc-java/commit/77454da9b3dcaaa2991412d1c3c1a6e1a338ff84"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bcgit/bc-java"
}, {
"type" : "WEB",
"url" : "https://github.com/bcgit/bc-java/wiki/CVE-2026-13506"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-674" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-18T17:37:51Z",
"nvd_published_at" : "2026-08-03T04:16:39Z"
}
}