Critical

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

  • Disclosed: 17.04.2026
  • Updated: 11.10.2026 13:20

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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.bouncycastle:bcprov-debug-jdk14 >= 1.59, <= 1.80.1, >= 1.82, < 1.84, = 1.81.0 1.84
Java / Kotlin (Maven) org.bouncycastle:bcprov-debug-jdk15on <= 1.7.0 no fix
Java / Kotlin (Maven) org.bouncycastle:bcprov-debug-jdk15to18 >= 1.59, <= 1.80.1, >= 1.82, < 1.84, = 1.81.0 1.84
Java / Kotlin (Maven) org.bouncycastle:bcprov-debug-jdk18on >= 1.59, <= 1.80.1, >= 1.82, < 1.84, = 1.81.0 1.84
Java / Kotlin (Maven) org.bouncycastle:bcprov-ext-debug-jdk14 >= 1.59, <= 1.74 no fix
Java / Kotlin (Maven) org.bouncycastle:bcprov-ext-debug-jdk15to18 >= 1.59, <= 1.77 no fix
Java / Kotlin (Maven) org.bouncycastle:bcprov-ext-debug-jdk18on >= 1.59, <= 1.77 no fix
Java / Kotlin (Maven) org.bouncycastle:bcprov-ext-jdk14 >= 1.59, <= 1.78.1 no fix
Java / Kotlin (Maven) org.bouncycastle:bcprov-ext-jdk15to18 >= 1.59, <= 1.78.1 no fix
Java / Kotlin (Maven) org.bouncycastle:bcprov-ext-jdk18on >= 1.59, <= 1.78.1 no fix
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk14 >= 1.59, <= 1.80.1, >= 1.82, < 1.84, = 1.81.0 1.84
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk15on <= 1.7.0 no fix
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk15to18 >= 1.59, <= 1.80.1, >= 1.82, < 1.84, = 1.81.0 1.84
Java / Kotlin (Maven) org.bouncycastle:bcprov-jdk18on >= 1.59, < 1.80.2, >= 1.81.0, < 1.81.1, >= 1.82, < 1.84 1.80.2, 1.81.1, 1.84

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-323, CWE-327
Platform
Java / Kotlin (Maven)
Package
org.bouncycastle:bcprov-debug-jdk14, org.bouncycastle:bcprov-debug-jdk15on, org.bouncycastle:bcprov-debug-jdk15to18
Disclosed
17.04.2026
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-574f-3g2m-x479 - CC BY 4.0

Vulnerability history: org.bouncycastle:bcprov-debug-jdk14

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
07.2023 04.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • Medium 1

Disclosures per year

  1. 2023: 1
  2. 2024: 0
  3. 2025: 0
  4. 2026: 1
  1. Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks this entry
    Critical · 7.5 CVE-2025-14813 >= 1.59, <= 1.80.1, >= 1.82, < 1.84, = 1.81.0 1.84
  2. Medium · 5.3 CVE-2023-33201 >= 1.49, < 1.74 1.74

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.