Security Digest · Vulnerability record

CVE-2025-14813: Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks

: Use of a Broken or Risky Cryptographic Algorithm vulnerability in Legion of the Bouncy Castle Inc.

CVSS 9.3 Critical EPSS 0.3% · p24

Should you act?

Critical, preconditions apply

Severe if exploited, but exploitation needs conditions that may not apply to you. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
  • EPSS 0.3%, percentile 24: FIRST’s model estimates a 0.3% chance of exploitation activity in the next 30 days, higher than 24% of all scored CVEs (low). EPSS is a probability, not a verdict.
  • Needs local access needed. Lower urgency for most teams unless an attacker could already run code on the machine.
  • Only applies if your dependency tree includes org.bouncycastle:bcprov-jdk14 (Maven) >= 1.59, <= 1.80.1, no fixed version listed; org.bouncycastle:bcprov-jdk15to18 (Maven) >= 1.59, <= 1.80.1, no fixed version listed; org.bouncycastle:bcprov-jdk18on (Maven) >= 1.59, <= 1.80.1, fixed in 1.80.2; org.bouncycastle:bcprov-debug-jdk14 (Maven) >= 1.59, <= 1.80.1, no fixed version listed. Check your lockfile, including transitive dependencies.

What it is

: Use of a Broken or Risky Cryptographic Algorithm vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (core modules). This vulnerability is associated with program files G3413CTRBlockCipher. This issue affects BC-JAVA: from 1.59 before 1.80.2, from 1.81 before 1.81.1, from 1.82 before 1.84.

From the GitHub advisory

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

Weakness type: CWE-327, CWE-323.

Product: org.bouncycastle:bcprov-jdk14 (Maven) · Assigned by: bcorg · Published: 2026-04-15

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Mavenorg.bouncycastle:bcprov-jdk14>= 1.59, <= 1.80.1none listed
Mavenorg.bouncycastle:bcprov-jdk15to18>= 1.59, <= 1.80.1none listed
Mavenorg.bouncycastle:bcprov-jdk18on>= 1.59, <= 1.80.11.80.2
Mavenorg.bouncycastle:bcprov-debug-jdk14>= 1.59, <= 1.80.1none listed
Mavenorg.bouncycastle:bcprov-debug-jdk15to18>= 1.59, <= 1.80.1none listed
Mavenorg.bouncycastle:bcprov-debug-jdk18on>= 1.59, <= 1.80.1none listed
Mavenorg.bouncycastle:bcprov-ext-jdk14>= 1.59, <= 1.78.1none listed
Mavenorg.bouncycastle:bcprov-ext-jdk15to18>= 1.59, <= 1.78.1none listed
Mavenorg.bouncycastle:bcprov-ext-jdk18on>= 1.59, <= 1.78.1none listed
Mavenorg.bouncycastle:bcprov-ext-debug-jdk14>= 1.59, <= 1.74none listed
Mavenorg.bouncycastle:bcprov-ext-debug-jdk15to18>= 1.59, <= 1.77none listed
Mavenorg.bouncycastle:bcprov-ext-debug-jdk18on>= 1.59, <= 1.77none listed
Mavenorg.bouncycastle:bcprov-jdk14= 1.81.0none listed
Mavenorg.bouncycastle:bcprov-jdk15to18= 1.81.0none listed
Mavenorg.bouncycastle:bcprov-jdk18on= 1.81.01.81.1
Mavenorg.bouncycastle:bcprov-debug-jdk14= 1.81.0none listed
Mavenorg.bouncycastle:bcprov-debug-jdk15to18= 1.81.0none listed
Mavenorg.bouncycastle:bcprov-debug-jdk18on= 1.81.0none listed
Mavenorg.bouncycastle:bcprov-jdk14>= 1.82, <= 1.831.84
Mavenorg.bouncycastle:bcprov-jdk15to18>= 1.82, <= 1.831.84
Mavenorg.bouncycastle:bcprov-jdk18on>= 1.82, <= 1.831.84
Mavenorg.bouncycastle:bcprov-debug-jdk14>= 1.82, <= 1.831.84
Mavenorg.bouncycastle:bcprov-debug-jdk15to18>= 1.82, <= 1.831.84
Mavenorg.bouncycastle:bcprov-debug-jdk18on>= 1.82, <= 1.831.84
Mavenorg.bouncycastle:bcprov-debug-jdk15on<= 1.7.0none listed
Mavenorg.bouncycastle:bcprov-jdk15on<= 1.7.0none listed
VendorProductAffected versions (per CVE record)
Legion of the Bouncy Castle Inc.BC-JAVA1.59 < 1.80.2, 1.81 < 1.81.1, 1.82 < 1.84

Severity scores

Scored byCVSSScoreVector
bcorg4.09.3 CriticalCVSS: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
redhat-SADP3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub4.09.3 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
  • Attack vector: local access needed
  • Attack complexity: low
  • Attack requirements: none
  • Privileges required: none (no login)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation none, automatable no, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 0.32% probability of exploitation activity in the next 30 days; percentile 24.

Timeline

  • — CVE record published by bcorg
  • — GitHub-reviewed advisory GHSA-574f-3g2m-x479 published (critical)
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vendor and project advisories, patches

  1. github.com github.com
  2. github.com github.com
  3. github.com github.com
  4. access.redhat.com access.redhat.com
  5. access.redhat.com access.redhat.com
  6. access.redhat.com access.redhat.com
  7. access.redhat.com access.redhat.com
  8. access.redhat.com access.redhat.com
  9. access.redhat.com access.redhat.com
  10. access.redhat.com access.redhat.com
  11. access.redhat.com access.redhat.com
  12. access.redhat.com access.redhat.com
  13. access.redhat.com access.redhat.com
  14. access.redhat.com access.redhat.com
  15. access.redhat.com access.redhat.com
  16. access.redhat.com access.redhat.com
  17. access.redhat.com access.redhat.com
  18. access.redhat.com access.redhat.com
  19. access.redhat.com access.redhat.com
  20. access.redhat.com access.redhat.com
  21. access.redhat.com access.redhat.com
  22. access.redhat.com access.redhat.com
  23. access.redhat.com access.redhat.com
  24. access.redhat.com access.redhat.com
  25. access.redhat.com access.redhat.com
  26. access.redhat.com access.redhat.com
  27. access.redhat.com access.redhat.com
  28. access.redhat.com access.redhat.com
  29. access.redhat.com access.redhat.com

Vulnerability records

  1. GitHub Advisory GHSA-574f-3g2m-x479 github.com
  2. CVE.org record CVE-2025-14813 cve.org
  3. NVD entry CVE-2025-14813 nvd.nist.gov

Other references from the CVE record and advisory

  1. access.redhat.com access.redhat.com
  2. RHBZ#2458640 bugzilla.redhat.com
  3. security.access.redhat.com security.access.redhat.com
  4. access.redhat.com access.redhat.com

Critical Maven advisories · Today’s Security Digest