Vulnerabilities in pkg:maven/org.bouncycastle/bcprov-debug-jdk15to18
PACKAGECVE-2025-14813 is a CRITICAL (CVSS 7.5) bouncy castle for java gost vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting Bouncy Castle libraries in the Maven ecosystem. The issue involves bouncy castle for java gost 28147 ctr mode reuses keystream after 255 blocks. Remediation is available by upgrading affected packages to version 1.80.2, 1.81.1, 1.84.
pkg:maven/org.bouncycastle/bcprov-debug-jdk15to18
Vulnerability advisories affecting package pkg:maven/org.bouncycastle/bcprov-debug-jdk15to18. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-574f-3g2m-x479 | CVE-2025-14813 | CRITICAL | Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks |
| GHSA-hr8g-6v94-x4m9 | CVE-2023-33201 | MODERATE | Bouncy Castle For Java LDAP injection vulnerability |
CVE-2025-14813 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:H/I:N/A:N).
How to Fix CVE-2025-14813
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-jdk14</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15to18</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.80.2</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk14</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk15to18</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk18on</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-ext-jdk14</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-ext-jdk15to18</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-ext-jdk18on</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-ext-debug-jdk14</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-ext-debug-jdk15to18</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-ext-debug-jdk18on</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk14</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15to18</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.81.1</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk14</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk15to18</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk18on</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk14</artifactId>
<version>1.84</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15to18</artifactId>
<version>1.84</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.84</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk14</artifactId>
<version>1.84</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk15to18</artifactId>
<version>1.84</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk18on</artifactId>
<version>1.84</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-debug-jdk15on</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>Latest secure release</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-2025-14813, 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.80.2), 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-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. 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-2025-14813 Affected Bouncy Castle Versions
26 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.bouncycastle:bcprov-jdk14
|
Maven |
≥ 1.59
≤ 1.80.1
|
|
|
org.bouncycastle:bcprov-jdk15to18
|
Maven |
≥ 1.59
≤ 1.80.1
|
|
|
org.bouncycastle:bcprov-jdk18on
|
Maven |
≥ 1.59
< 1.80.2
|
1.80.2
|
|
org.bouncycastle:bcprov-debug-jdk14
|
Maven |
≥ 1.59
≤ 1.80.1
|
|
|
org.bouncycastle:bcprov-debug-jdk15to18
|
Maven |
≥ 1.59
≤ 1.80.1
|
|
|
org.bouncycastle:bcprov-debug-jdk18on
|
Maven |
≥ 1.59
≤ 1.80.1
|
|
|
org.bouncycastle:bcprov-ext-jdk14
|
Maven |
≥ 1.59
≤ 1.78.1
|
|
|
org.bouncycastle:bcprov-ext-jdk15to18
|
Maven |
≥ 1.59
≤ 1.78.1
|
|
|
org.bouncycastle:bcprov-ext-jdk18on
|
Maven |
≥ 1.59
≤ 1.78.1
|
|
|
org.bouncycastle:bcprov-ext-debug-jdk14
|
Maven |
≥ 1.59
≤ 1.74
|
|
|
org.bouncycastle:bcprov-ext-debug-jdk15to18
|
Maven |
≥ 1.59
≤ 1.77
|
|
|
org.bouncycastle:bcprov-ext-debug-jdk18on
|
Maven |
≥ 1.59
≤ 1.77
|
|
|
org.bouncycastle:bcprov-jdk14
|
Maven |
1.81.0
All 1 versions
1.81.0
|
None specified
|
|
org.bouncycastle:bcprov-jdk15to18
|
Maven |
1.81.0
All 1 versions
1.81.0
|
None specified
|
|
org.bouncycastle:bcprov-jdk18on
|
Maven |
≥ 1.81.0
< 1.81.1
All 1 versions
1.81.0
|
1.81.1
|
|
org.bouncycastle:bcprov-debug-jdk14
|
Maven |
1.81.0
All 1 versions
1.81.0
|
None specified
|
|
org.bouncycastle:bcprov-debug-jdk15to18
|
Maven |
1.81.0
All 1 versions
1.81.0
|
None specified
|
|
org.bouncycastle:bcprov-debug-jdk18on
|
Maven |
1.81.0
All 1 versions
1.81.0
|
None specified
|
|
org.bouncycastle:bcprov-jdk14
|
Maven |
≥ 1.82
< 1.84
|
1.84
|
|
org.bouncycastle:bcprov-jdk15to18
|
Maven |
≥ 1.82
< 1.84
|
1.84
|
|
org.bouncycastle:bcprov-jdk18on
|
Maven |
≥ 1.82
< 1.84
|
1.84
|
|
org.bouncycastle:bcprov-debug-jdk14
|
Maven |
≥ 1.82
< 1.84
|
1.84
|
|
org.bouncycastle:bcprov-debug-jdk15to18
|
Maven |
≥ 1.82
< 1.84
|
1.84
|
|
org.bouncycastle:bcprov-debug-jdk18on
|
Maven |
≥ 1.82
< 1.84
|
1.84
|
|
org.bouncycastle:bcprov-debug-jdk15on
|
Maven |
≤ 1.7.0
|
|
|
org.bouncycastle:bcprov-jdk15on
|
Maven |
≤ 1.7.0
|
|
References
Frequently Asked Questions
What is CVE-2025-14813?
Which Bouncy Castle versions are affected?
What version fixes CVE-2025-14813?
Is bcprov-jdk14 affected?
Is bcprov-jdk15to18 affected?
What is the CVSS score of CVE-2025-14813?
What CWE is associated with CVE-2025-14813?
How can I check Maven dependencies for CVE-2025-14813?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-574f-3g2m-x479",
"modified" : "2026-09-24T15:18:43Z",
"published" : "2026-04-17T18:31:50Z",
"aliases" : [ "CVE-2025-14813" ],
"summary" : "Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks",
"details" : "The GOST 28147-2015 CTR mode implementation (`G3413CTRBlockCipher`) in the Legion of the Bouncy Castle BC-JAVA `bcprov` core module only increments the final byte of the counter, so the counter wraps after 255 blocks and the keystream is reused. Reusing CTR keystream allows an attacker who can observe two ciphertexts produced with the same key/IV to recover the XOR of the plaintexts, breaking confidentiality. Affects BC-JAVA from 1.59 before 1.84 (with backported fixes in 1.80.2 and 1.81.1).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/RE:M/U:Red"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk14"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.80.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk15to18"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.80.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk18on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"fixed" : "1.80.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.80.1"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk14"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.80.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk15to18"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.80.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk18on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.80.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-ext-jdk14"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.78.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-ext-jdk15to18"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.78.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-ext-jdk18on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.78.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-ext-debug-jdk14"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.74"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-ext-debug-jdk15to18"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.77"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-ext-debug-jdk18on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.59"
}, {
"last_affected" : "1.77"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk14"
},
"versions" : [ "1.81.0" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk15to18"
},
"versions" : [ "1.81.0" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk18on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.81.0"
}, {
"fixed" : "1.81.1"
} ]
} ],
"versions" : [ "1.81.0" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk14"
},
"versions" : [ "1.81.0" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk15to18"
},
"versions" : [ "1.81.0" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk18on"
},
"versions" : [ "1.81.0" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk14"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.82"
}, {
"fixed" : "1.84"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.83"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk15to18"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.82"
}, {
"fixed" : "1.84"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.83"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk18on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.82"
}, {
"fixed" : "1.84"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.83"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk14"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.82"
}, {
"fixed" : "1.84"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.83"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk15to18"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.82"
}, {
"fixed" : "1.84"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.83"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk18on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.82"
}, {
"fixed" : "1.84"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.83"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-debug-jdk15on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.7.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.bouncycastle:bcprov-jdk15on"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.7.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-14813"
}, {
"type" : "WEB",
"url" : "https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f"
}, {
"type" : "WEB",
"url" : "https://github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:11720"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60248"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60249"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60250"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60251"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60252"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60254"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60256"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60259"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:66488"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2025-14813"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2458640"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bcgit/bc-java"
}, {
"type" : "WEB",
"url" : "https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813"
}, {
"type" : "WEB",
"url" : "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.json"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:11721"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:13631"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:14272"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:14276"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:17668"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:18054"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:18055"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:18059"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:21772"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:24977"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53644"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53645"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53646"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:53806"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60239"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60246"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:60247"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-323", "CWE-327" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-30T19:45:20Z",
"nvd_published_at" : "2026-04-15T10:16:38Z"
}
}