CVE-2025-14813
Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
Description
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 Maven artifacts (14)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.bouncycastle » bcprov-debug-jdk14 | >= 1.59, <= 1.80.1>= 1.82, < 1.84 | 1.84 |
| org.bouncycastle » bcprov-debug-jdk15on | <= 1.7.0 | - |
| org.bouncycastle » bcprov-debug-jdk15to18 | >= 1.59, <= 1.80.1>= 1.82, < 1.84 | 1.84 |
| org.bouncycastle » bcprov-debug-jdk18on | >= 1.59, <= 1.80.1>= 1.82, < 1.84 | 1.84 |
| org.bouncycastle » bcprov-ext-debug-jdk14 | >= 1.59, <= 1.74 | - |
| org.bouncycastle » bcprov-ext-debug-jdk15to18 | >= 1.59, <= 1.77 | - |
| org.bouncycastle » bcprov-ext-debug-jdk18on | >= 1.59, <= 1.77 | - |
| org.bouncycastle » bcprov-ext-jdk14 | >= 1.59, <= 1.78.1 | - |
| org.bouncycastle » bcprov-ext-jdk15to18 | >= 1.59, <= 1.78.1 | - |
| org.bouncycastle » bcprov-ext-jdk18on | >= 1.59, <= 1.78.1 | - |
| org.bouncycastle » bcprov-jdk14 | >= 1.59, <= 1.80.1>= 1.82, < 1.84 | 1.84 |
| org.bouncycastle » bcprov-jdk15on | <= 1.7.0 | - |
| org.bouncycastle » bcprov-jdk15to18 | >= 1.59, <= 1.80.1>= 1.82, < 1.84 | 1.84 |
| 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 |
Blast radius
62% of the dependent artifacts (16,871) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 64,520 |
| 2 hops | 248,494 |
| 3 hops | 335,838 |
| 4 hops | 419,997 |
| 5 hops | 227,651 |
| 6 hops | 63,566 |
Most used dependents
- org.apache.maven.plugins » maven-gpg-plugin50,913 usages
- io.netty » netty-all3,584 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- redis.clients » jedis2,971 usages
- org.apache.spark » spark-core2,899 usages
- org.wso2.maven » carbon-p2-plugin2,864 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- com.android.tools.build » gradle2,197 usages
- org.bouncycastle » bcpkix-jdk18on2,109 usages
- org.apache.zookeeper » zookeeper2,044 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.apache.kafka » kafka1,450 usages
- org.jenkins-ci.tools » maven-hpi-plugin1,404 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-14813
- Webhttps://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f
- Webhttps://github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3
- Webhttps://access.redhat.com/errata/RHSA-2026:11720
- Webhttps://access.redhat.com/errata/RHSA-2026:60248
- Webhttps://access.redhat.com/errata/RHSA-2026:60249
- Webhttps://access.redhat.com/errata/RHSA-2026:60250
- Webhttps://access.redhat.com/errata/RHSA-2026:60251
- Webhttps://access.redhat.com/errata/RHSA-2026:60252
- Webhttps://access.redhat.com/errata/RHSA-2026:60254
- Webhttps://access.redhat.com/errata/RHSA-2026:60256
- Webhttps://access.redhat.com/errata/RHSA-2026:60259
- Webhttps://access.redhat.com/errata/RHSA-2026:66488
- Webhttps://access.redhat.com/security/cve/CVE-2025-14813
- Webhttps://bugzilla.redhat.com/show_bug.cgi?id=2458640
- Packagehttps://github.com/bcgit/bc-java
- Webhttps://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813
- Webhttps://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.json
- Webhttps://access.redhat.com/errata/RHSA-2026:11721
- Webhttps://access.redhat.com/errata/RHSA-2026:13631
- Webhttps://access.redhat.com/errata/RHSA-2026:14272
- Webhttps://access.redhat.com/errata/RHSA-2026:14276
- Webhttps://access.redhat.com/errata/RHSA-2026:17668
- Webhttps://access.redhat.com/errata/RHSA-2026:18054
- Webhttps://access.redhat.com/errata/RHSA-2026:18055
- Webhttps://access.redhat.com/errata/RHSA-2026:18059
- Webhttps://access.redhat.com/errata/RHSA-2026:21772
- Webhttps://access.redhat.com/errata/RHSA-2026:24977
- Webhttps://access.redhat.com/errata/RHSA-2026:53644
- Webhttps://access.redhat.com/errata/RHSA-2026:53645
- Webhttps://access.redhat.com/errata/RHSA-2026:53646
- Webhttps://access.redhat.com/errata/RHSA-2026:53806
- Webhttps://access.redhat.com/errata/RHSA-2026:60239
- Webhttps://access.redhat.com/errata/RHSA-2026:60246
- Webhttps://access.redhat.com/errata/RHSA-2026:60247
