Vulnerabilities in pkg:maven/org.bouncycastle/bcprov-lts8on

PACKAGE
Advisory Identifier: GHSA-qp49-qgx5-5m26
Advisory Summary

CVE-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.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.bouncycastle/bcprov-lts8on

4 Known Advisory Record(s)

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

CVE Identifier CVE-2026-13506
GHSA Identifier GHSA-qp49-qgx5-5m26
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product Bouncy Castle
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

org.bouncycastle:bcprov-jdk18on fixed: 1.85
<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bcprov-jdk18on</artifactId>
    <version>1.85</version>
</dependency>
org.bouncycastle:bc-fips fixed: 1.0.2.7
<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bc-fips</artifactId>
    <version>1.0.2.7</version>
</dependency>
org.bouncycastle:bc-fips fixed: 2.0.2
<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bc-fips</artifactId>
    <version>2.0.2</version>
</dependency>
org.bouncycastle:bc-fips fixed: 2.1.3
<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bc-fips</artifactId>
    <version>2.1.3</version>
</dependency>
org.bouncycastle:bcprov-lts8on fixed: 2.73.12
<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bcprov-lts8on</artifactId>
    <version>2.73.12</version>
</dependency>
org.bouncycastle:bcprov-jdk15to18 fixed: 1.85
<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bcprov-jdk15to18</artifactId>
    <version>1.85</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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).

CVE-2026-13506 Affected Bouncy Castle Versions

6 component(s)
Fixed Versions:
1.851.0.2.72.0.22.1.32.73.12
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?
CVE-2026-13506 is a security vulnerability in Bouncy Castle involving Lazy ASN.1 sequence forcing resets nesting-depth guard under CWE-674: Uncontrolled Recursion.
Which Bouncy Castle versions are affected?
Affected versions include releases prior to 1.85, 1.0.2.7, 2.0.2, 2.1.3, 2.73.12 across affected packages: org.bouncycastle:bcprov-jdk18on, org.bouncycastle:bc-fips, org.bouncycastle:bcprov-lts8on, org.bouncycastle:bcprov-jdk15to18.
What version fixes CVE-2026-13506?
Upgrading to 1.85, 1.0.2.7, 2.0.2, 2.1.3, 2.73.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bcprov-jdk18on affected?
Yes, org.bouncycastle:bcprov-jdk18on is affected in releases prior to 1.85. Upgrade your dependency to 1.85 or later.
Is bc-fips affected?
Yes, org.bouncycastle:bc-fips is affected in releases prior to 1.0.2.7, 2.0.2, 2.1.3. Upgrade your dependency to 1.0.2.7, 2.0.2, 2.1.3 or later.
What is the CVSS score of CVE-2026-13506?
CVE-2026-13506 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-13506?
CVE-2026-13506 is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check Maven dependencies for CVE-2026-13506?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.bouncycastle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}