Staging Environment: Content and features may be unstable or change without notice.
Advisory details: github_osv / GHSA-574f-3g2m-x479
Advisory ID github_osv/GHSA-574f-3g2m-x479
Aliases CVE-2025-14813
Summary 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).
Status Published
Exploitability 0.5
Weighted Severity 8.4
Risk 4.2
Affected and Fixed Packages Package Details
Introduced and Fixed Package Commit Patches Package Commit Patches Details
Weaknesses (2)
Reference id Reference type URL
https://access.redhat.com/errata/RHSA-2026:60239
https://access.redhat.com/errata/RHSA-2026:60246
https://access.redhat.com/errata/RHSA-2026:60247
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://github.com/bcgit/bc-java
https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.json
2458640 Bug https://bugzilla.redhat.com/show_bug.cgi?id=2458640
701686cb0184cd9ae103c801b3581fdf95c6d4f3 Other https://github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3
b42574345414e4b7c8051b16fa1fafe01c29871f Other https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f
CVE-2025-14813 https://access.redhat.com/security/cve/CVE-2025-14813
CVE-2025-14813 https://nvd.nist.gov/vuln/detail/CVE-2025-14813
CVE%E2%80%902025%E2%80%9014813 Advisory https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813
RHSA-2026:11720 https://access.redhat.com/errata/RHSA-2026:11720
RHSA-2026:11721 https://access.redhat.com/errata/RHSA-2026:11721
RHSA-2026:13631 https://access.redhat.com/errata/RHSA-2026:13631
RHSA-2026:14272 https://access.redhat.com/errata/RHSA-2026:14272
RHSA-2026:14276 https://access.redhat.com/errata/RHSA-2026:14276
RHSA-2026:17668 Advisory https://access.redhat.com/errata/RHSA-2026:17668
RHSA-2026:18054 Advisory https://access.redhat.com/errata/RHSA-2026:18054
RHSA-2026:18055 Advisory https://access.redhat.com/errata/RHSA-2026:18055
RHSA-2026:18059 Advisory https://access.redhat.com/errata/RHSA-2026:18059
RHSA-2026:21772 https://access.redhat.com/errata/RHSA-2026:21772
RHSA-2026:24977 https://access.redhat.com/errata/RHSA-2026:24977
RHSA-2026:53644 Advisory https://access.redhat.com/errata/RHSA-2026:53644
RHSA-2026:53645 Advisory https://access.redhat.com/errata/RHSA-2026:53645
RHSA-2026:53646 Advisory https://access.redhat.com/errata/RHSA-2026:53646
RHSA-2026:53806 Advisory https://access.redhat.com/errata/RHSA-2026:53806
RHSA-2026:66488 https://access.redhat.com/errata/RHSA-2026:66488
No exploits are available.

No EPSS data available for this advisory.

Patch URL
There are no known patches.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Found at https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-574f-3g2m-x479/GHSA-574f-3g2m-x479.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: 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 Found at https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-574f-3g2m-x479/GHSA-574f-3g2m-x479.json
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

There are no SSVC decisions available.