Skip to main content

CVE-2025-14813 — Vulnerability in bcprov-ext-debug-jdk14 — CVE Details

CRITICAL

Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks

Published April 17, 2026Updated September 24, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.34%). Schedule for your next planned update.

Does your project use an affected org.bouncycastle:bcprov-ext-debug-jdk14 version?

Paste your pom.xml to check it for CVE-2025-14813 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

Summary

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

Advisory Timeline

  • First published April 17, 2026 (223 days ago).
  • Last revised September 24, 2026 — 160 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.bouncycastle:bcprov-jdk15to18 to 1.84 or later
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcprov-jdk15to18 -->
Maven
Update org.bouncycastle:bcprov-jdk18on to 1.80.2 or later
<!-- Update pom.xml dependency version to 1.80.2 for org.bouncycastle:bcprov-jdk18on -->
Maven
Update org.bouncycastle:bcprov-jdk18on to 1.81.1 or later
<!-- Update pom.xml dependency version to 1.81.1 for org.bouncycastle:bcprov-jdk18on -->
Maven
Update org.bouncycastle:bcprov-debug-jdk18on to 1.84 or later
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcprov-debug-jdk18on -->
Maven
Update org.bouncycastle:bcprov-debug-jdk14 to 1.84 or later
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcprov-debug-jdk14 -->
Maven
Update org.bouncycastle:bcprov-jdk14 to 1.84 or later
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcprov-jdk14 -->
Maven
Update org.bouncycastle:bcprov-jdk18on to 1.84 or later
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcprov-jdk18on -->
Maven
Update org.bouncycastle:bcprov-debug-jdk15to18 to 1.84 or later
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcprov-debug-jdk15to18 -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (26)

Affects 1 ecosystem: Maven (14).

PackageFixed In
org.bouncycastle:bcprov-ext-debug-jdk14 Maven · Affected: 1.60, 1.68, 1.69, 1.70 (+4 more)Range-based data available
org.bouncycastle:bcprov-jdk15to18 Maven · Affected: 1.82, 1.831.84
org.bouncycastle:bcprov-ext-debug-jdk15to18 Maven · Affected: 1.68, 1.69, 1.70, 1.71 (+6 more)Range-based data available
org.bouncycastle:bcprov-debug-jdk15to18 Maven · Affected: 1.64, 1.68, 1.69, 1.70 (+10 more)Range-based data available
org.bouncycastle:bcprov-jdk18on Maven · Affected: 1.71, 1.71.1, 1.72, 1.73 (+8 more)1.80.2
org.bouncycastle:bcprov-jdk15on Maven · Affected: All versionsRange-based data available
org.bouncycastle:bcprov-jdk14 Maven · Affected: 1.59, 1.60, 1.61, 1.62 (+18 more)Range-based data available
org.bouncycastle:bcprov-jdk18on Maven · Affected: 1.81, 1.81.01.81.1
org.bouncycastle:bcprov-debug-jdk15on Maven · Affected: All versionsRange-based data available
org.bouncycastle:bcprov-debug-jdk15to18 Maven · Affected: 1.81.0No fix available
org.bouncycastle:bcprov-jdk15to18 Maven · Affected: 1.81.0No fix available
org.bouncycastle:bcprov-ext-jdk14 Maven · Affected: 1.60, 1.64, 1.65, 1.67 (+10 more)Range-based data available
org.bouncycastle:bcprov-debug-jdk18on Maven · Affected: 1.81.0No fix available
org.bouncycastle:bcprov-debug-jdk18on Maven · Affected: 1.82, 1.831.84
org.bouncycastle:bcprov-debug-jdk14 Maven · Affected: 1.82, 1.831.84
org.bouncycastle:bcprov-jdk14 Maven · Affected: 1.81.0No fix available
org.bouncycastle:bcprov-jdk15to18 Maven · Affected: 1.63, 1.64, 1.65, 1.66 (+15 more)Range-based data available
org.bouncycastle:bcprov-debug-jdk14 Maven · Affected: 1.81.0No fix available
org.bouncycastle:bcprov-ext-jdk15to18 Maven · Affected: 1.64, 1.67, 1.68, 1.69 (+10 more)Range-based data available
org.bouncycastle:bcprov-jdk14 Maven · Affected: 1.82, 1.831.84
org.bouncycastle:bcprov-debug-jdk18on Maven · Affected: 1.71, 1.72, 1.73, 1.74 (+6 more)Range-based data available
org.bouncycastle:bcprov-debug-jdk14 Maven · Affected: 1.59, 1.60, 1.64, 1.68 (+9 more)Range-based data available
org.bouncycastle:bcprov-jdk18on Maven · Affected: 1.82, 1.831.84
org.bouncycastle:bcprov-debug-jdk15to18 Maven · Affected: 1.82, 1.831.84
org.bouncycastle:bcprov-ext-debug-jdk18on Maven · Affected: 1.71, 1.72, 1.73, 1.74 (+3 more)Range-based data available
org.bouncycastle:bcprov-ext-jdk18on Maven · Affected: 1.71, 1.72, 1.73, 1.74 (+5 more)Range-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References

Frequently Asked Questions

What is CVE-2025-14813?
Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2025-14813?
CVE-2025-14813 affects org.bouncycastle:bcprov-ext-debug-jdk14, org.bouncycastle:bcprov-jdk15to18 and org.bouncycastle:bcprov-ext-debug-jdk15to18 (and 11 more). It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-14813 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.34%
EPSS percentile: 19.7

This is a below-median EPSS score — only 19.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-574f-3g2m-x479

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml