Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
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).
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| 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 | sin corrección |
| 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 | sin corrección |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-ext-debug-jdk15to18 | >= 1.59, <= 1.77 | sin corrección |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-ext-debug-jdk18on | >= 1.59, <= 1.77 | sin corrección |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-ext-jdk14 | >= 1.59, <= 1.78.1 | sin corrección |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-ext-jdk15to18 | >= 1.59, <= 1.78.1 | sin corrección |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-ext-jdk18on | >= 1.59, <= 1.78.1 | sin corrección |
| 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 | sin corrección |
| 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 |
Referencias
- https://nvd.nist.gov/vuln/detail/CVE-2025-14813
- https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f
- https://github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3
- https://access.redhat.com/errata/RHSA-2026:11720
- https://access.redhat.com/errata/RHSA-2026:60248
- https://access.redhat.com/errata/RHSA-2026:60249
- https://access.redhat.com/errata/RHSA-2026:60250
- https://access.redhat.com/errata/RHSA-2026:60251
- https://access.redhat.com/errata/RHSA-2026:60252
- https://access.redhat.com/errata/RHSA-2026:60254
- https://access.redhat.com/errata/RHSA-2026:60256
- https://access.redhat.com/errata/RHSA-2026:60259
- https://access.redhat.com/errata/RHSA-2026:66488
- https://access.redhat.com/security/cve/CVE-2025-14813
- https://bugzilla.redhat.com/show_bug.cgi?id=2458640
- https://github.com/bcgit/bc-java
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.json
- https://access.redhat.com/errata/RHSA-2026:11721
- https://access.redhat.com/errata/RHSA-2026:13631
- https://access.redhat.com/errata/RHSA-2026:14272
- https://access.redhat.com/errata/RHSA-2026:14276
- https://access.redhat.com/errata/RHSA-2026:17668
- https://access.redhat.com/errata/RHSA-2026:18054
- https://access.redhat.com/errata/RHSA-2026:18055
- https://access.redhat.com/errata/RHSA-2026:18059
- https://access.redhat.com/errata/RHSA-2026:21772
- https://access.redhat.com/errata/RHSA-2026:24977
- https://access.redhat.com/errata/RHSA-2026:53644
- https://access.redhat.com/errata/RHSA-2026:53645
- https://access.redhat.com/errata/RHSA-2026:53646
- https://access.redhat.com/errata/RHSA-2026:53806
- https://access.redhat.com/errata/RHSA-2026:60239
- https://access.redhat.com/errata/RHSA-2026:60246
- https://access.redhat.com/errata/RHSA-2026:60247
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Debilidad (CWE)
CWE-323, CWE-327- Plataforma
- Java / Kotlin (Maven)
- Paquete
org.bouncycastle:bcprov-debug-jdk14, org.bouncycastle:bcprov-debug-jdk15on, org.bouncycastle:bcprov-debug-jdk15to18- Publicada
- 17.04.2026
- Actualizado
- 11.10.2026 13:20
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-574f-3g2m-x479 - CC BY 4.0
Historial de vulnerabilidades: org.bouncycastle:bcprov-ext-debug-jdk18on
Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
Esta es la única vulnerabilidad conocida de este paquete.
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.