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
| Ecosystem | Package | Vulnerable | First fixed |
|---|---|---|---|
| Maven | org.bouncycastle:bcprov-jdk14 | >= 1.59, <= 1.80.1 | none listed |
| Maven | org.bouncycastle:bcprov-jdk15to18 | >= 1.59, <= 1.80.1 | none listed |
| Maven | org.bouncycastle:bcprov-jdk18on | >= 1.59, <= 1.80.1 | 1.80.2 |
| Maven | org.bouncycastle:bcprov-debug-jdk14 | >= 1.59, <= 1.80.1 | none listed |
| Maven | org.bouncycastle:bcprov-debug-jdk15to18 | >= 1.59, <= 1.80.1 | none listed |
| Maven | org.bouncycastle:bcprov-debug-jdk18on | >= 1.59, <= 1.80.1 | none listed |
| Maven | org.bouncycastle:bcprov-ext-jdk14 | >= 1.59, <= 1.78.1 | none listed |
| Maven | org.bouncycastle:bcprov-ext-jdk15to18 | >= 1.59, <= 1.78.1 | none listed |
| Maven | org.bouncycastle:bcprov-ext-jdk18on | >= 1.59, <= 1.78.1 | none listed |
| Maven | org.bouncycastle:bcprov-ext-debug-jdk14 | >= 1.59, <= 1.74 | none listed |
| Maven | org.bouncycastle:bcprov-ext-debug-jdk15to18 | >= 1.59, <= 1.77 | none listed |
| Maven | org.bouncycastle:bcprov-ext-debug-jdk18on | >= 1.59, <= 1.77 | none listed |
| Maven | org.bouncycastle:bcprov-jdk14 | = 1.81.0 | none listed |
| Maven | org.bouncycastle:bcprov-jdk15to18 | = 1.81.0 | none listed |
| Maven | org.bouncycastle:bcprov-jdk18on | = 1.81.0 | 1.81.1 |
| Maven | org.bouncycastle:bcprov-debug-jdk14 | = 1.81.0 | none listed |
| Maven | org.bouncycastle:bcprov-debug-jdk15to18 | = 1.81.0 | none listed |
| Maven | org.bouncycastle:bcprov-debug-jdk18on | = 1.81.0 | none listed |
| Maven | org.bouncycastle:bcprov-jdk14 | >= 1.82, <= 1.83 | 1.84 |
| Maven | org.bouncycastle:bcprov-jdk15to18 | >= 1.82, <= 1.83 | 1.84 |
| Maven | org.bouncycastle:bcprov-jdk18on | >= 1.82, <= 1.83 | 1.84 |
| Maven | org.bouncycastle:bcprov-debug-jdk14 | >= 1.82, <= 1.83 | 1.84 |
| Maven | org.bouncycastle:bcprov-debug-jdk15to18 | >= 1.82, <= 1.83 | 1.84 |
| Maven | org.bouncycastle:bcprov-debug-jdk18on | >= 1.82, <= 1.83 | 1.84 |
| Maven | org.bouncycastle:bcprov-debug-jdk15on | <= 1.7.0 | none listed |
| Maven | org.bouncycastle:bcprov-jdk15on | <= 1.7.0 | none listed |
| Vendor | Product | Affected versions (per CVE record) |
|---|---|---|
| Legion of the Bouncy Castle Inc. | BC-JAVA | 1.59 < 1.80.2, 1.81 < 1.81.1, 1.82 < 1.84 |
Severity scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| bcorg | 4.0 | 9.3 Critical | 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 |
| redhat-SADP | 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 4.0 | 9.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
- github.com github.com
- github.com github.com
- github.com github.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
- access.redhat.com access.redhat.com
Vulnerability records
- GitHub Advisory GHSA-574f-3g2m-x479 github.com
- CVE.org record CVE-2025-14813 cve.org
- NVD entry CVE-2025-14813 nvd.nist.gov
Other references from the CVE record and advisory
- access.redhat.com access.redhat.com
- RHBZ#2458640 bugzilla.redhat.com
- security.access.redhat.com security.access.redhat.com
- access.redhat.com access.redhat.com