Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2025-14813

Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
Back to all
CVE

CVE-2025-14813

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

Package Versions Affected

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.3
-
4.0
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:M/U:Red
C
H
U
0
-
C
H
U
7.5
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Related Resources

No items found.

References

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://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.json, https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813, https://github.com/bcgit/bc-java, https://bugzilla.redhat.com/show_bug.cgi?id=2458640, https://access.redhat.com/security/cve/CVE-2025-14813, https://access.redhat.com/errata/RHSA-2026:24977, https://access.redhat.com/errata/RHSA-2026:21772, https://access.redhat.com/errata/RHSA-2026:18059, https://access.redhat.com/errata/RHSA-2026:18055, https://access.redhat.com/errata/RHSA-2026:18054, https://access.redhat.com/errata/RHSA-2026:17668, https://access.redhat.com/errata/RHSA-2026:14276, https://access.redhat.com/errata/RHSA-2026:14272, https://access.redhat.com/errata/RHSA-2026:13631, https://access.redhat.com/errata/RHSA-2026:11721, https://access.redhat.com/errata/RHSA-2026:11720

Severity

7.5

CVSS Score
0
10

Basic Information

Base CVSS
7.5
EPSS Probability
0.00313%
EPSS Percentile
0.24052%
Introduced Version
1.71,1.81,1.82,1.63,1.59,1.64,1.60,1.68,2.73.0,2.73.4,0
Fix Available
1.80.2,1.81.1,1.84,2.73.10,2.73.5,3.4.2-r5,8.19.19-r0,9.3.8-r0,9.4.4-r0,2.19.6-r0

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading