Vulnerabilities in pkg:maven/org.bouncycastle/bc-fips
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/bc-fips
Vulnerability advisories affecting package pkg:maven/org.bouncycastle/bc-fips. 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-98j2-6v39-78w8 | CVE-2026-13505 | HIGH | Bouncy Castle: Zeroisation of sensitive key material on garbage collection relies on finalization. |
| GHSA-v6w3-qrh8-qccc | CVE-2026-8798 | HIGH | Bouncy Castle: the native entropy source used on Intel platforms retried the CPU entropy instructions without any bound |
| GHSA-9pwp-9qqc-pr26 | CVE-2026-8763 | CRITICAL | Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI |
| GHSA-jv6h-4262-q663 | CVE-2025-12194 | MODERATE | Bouncy Castle Vulnerable to Uncontrolled Resource Consumption |
| GHSA-67mf-3cr5-8w23 | CVE-2025-8885 | MODERATE | Bouncy Castle for Java on All (API modules) allows Excessive Allocation |
| GHSA-jfcv-jv9g-2vx2 | CVE-2025-9341 | MODERATE | Bouncy Castle for Java has Uncontrolled Resource Consumption Vulnerability |
| GHSA-g6rx-6wfx-gj74 | CVE-2025-9340 | LOW | Bouncy Castle for Java has Out-of-Bounds Write Vulnerability |
| GHSA-v6cf-mv9h-c8mc | CVE-2025-9092 | LOW | Bouncy Castle for Java Uncontrolled Resource Consumption Vulnerability |
| GHSA-6xx3-rg99-gc3p | CVE-2020-15522 | MODERATE | Timing based private key exposure in Bouncy Castle |
| GHSA-72m5-fvvv-55m6 | CVE-2020-26939 | MODERATE | Observable Differences in Behavior to Error Inputs in Bouncy Castle |
| GHSA-8xfc-gm6g-vgpv | CVE-2024-29857 | MODERATE | Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation. |
| GHSA-68m8-v89j-7j2p | CVE-2022-45146 | MODERATE | Garbage collection issue in BC-FJA in Java 13 and later |
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"
}
}