CVE-2025-14813
Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
EPSS 0.31%
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).
How to fix CVE-2025-14813
To remediate CVE-2025-14813, upgrade the affected package to a fixed version below.
- —no fix listed
- —no fix listed
- —no fix listed
- —no fix listed
- —no fix listed
- —no fix listed
- —no fix listed
- —no fix listed
- —no fix listed
- —no fix listed
- —no fix listed
- —upgrade to 1.80.2 or later
Is CVE-2025-14813 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (12)
- >= 1.59, <= 1.80.1
- >= 1.59, <= 1.80.1
- >= 1.59, <= 1.80.1
- >= 1.59, <= 1.74
- >= 1.59, <= 1.77
- >= 1.59, <= 1.77
- >= 1.59, <= 1.78.1
- >= 1.59, <= 1.78.1
- >= 1.59, <= 1.78.1
- >= 1.59, <= 1.80.1
- >= 1.59, <= 1.80.1
- >= 1.59, < 1.80.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 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/RE:M/U:Red |