CVE-2025-14813

GOSTCTR implementation unable to process more than 255 blocks correctly

Published Apr 15, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
: Use of a Broken or Risky Cryptographic Algorithm vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (core modules).

This vulnerability is associated with program files G3413CTRBlockCipher.



This issue affects BC-JAVA: from 1.59 before 1.80.2, from 1.81 before 1.81.1, from 1.82 before 1.84.

Analysis

AI-generated

Technical impact

A broken or risky cryptographic algorithm is used in the Legion of the Bouncy Castle Inc. BC-Java bcprov library. The GOSTCTR implementation fails to process more than 255 blocks correctly, which can undermine the security of data encrypted with this algorithm. The weakness is identified as a cryptographic algorithm weakness, allowing an adversary to potentially compromise confidentiality of data.

Affected Systems

Products affected are BC-Java bcprov from version 1.59 up to but excluding 1.84. Organizations using these library versions must review deployment of the GOSTCTR cipher.

Risk and Exploitability

The CVSS score is 9.3, indicating a critical severity. This vulnerability has an EPSS score of < 1%, indicating a very low but nonzero exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. The exact attack vector is not described in the CVE data, but given the nature of the flaw it is inferred that an attacker could exploit the weak encryption to decrypt or forge data if the library is used for cryptographic operations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the BC-Java library to version 1.84 or later, which resolves the GOSTCTR block processing bug.
  • Remove or replace any use of the GOSTCTR cipher beyond 255 blocks until a secure implementation is available.
  • Conduct a code audit to identify all instances of the BC-Java library and verify that the upgraded version is deployed in production.

Generated by OpenCVE AI on May 19, 2026 at 00:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-574f-3g2m-x479 Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
References
Link Providers
https://access.redhat.com/errata/RHSA-2026:11720 cve-icon
https://access.redhat.com/errata/RHSA-2026:11721 cve-icon
https://access.redhat.com/errata/RHSA-2026:13631 cve-icon
https://access.redhat.com/errata/RHSA-2026:14272 cve-icon
https://access.redhat.com/errata/RHSA-2026:14276 cve-icon
https://access.redhat.com/errata/RHSA-2026:17668 cve-icon
https://access.redhat.com/errata/RHSA-2026:18054 cve-icon
https://access.redhat.com/errata/RHSA-2026:18055 cve-icon
https://access.redhat.com/errata/RHSA-2026:18059 cve-icon
https://access.redhat.com/errata/RHSA-2026:21772 cve-icon
https://access.redhat.com/errata/RHSA-2026:24977 cve-icon
https://access.redhat.com/errata/RHSA-2026:53644 cve-icon
https://access.redhat.com/errata/RHSA-2026:53645 cve-icon
https://access.redhat.com/errata/RHSA-2026:53646 cve-icon
https://access.redhat.com/errata/RHSA-2026:60239 cve-icon
https://access.redhat.com/errata/RHSA-2026:60246 cve-icon
https://access.redhat.com/errata/RHSA-2026:60247 cve-icon
https://access.redhat.com/errata/RHSA-2026:60248 cve-icon
https://access.redhat.com/errata/RHSA-2026:60249 cve-icon
https://access.redhat.com/errata/RHSA-2026:60250 cve-icon
https://access.redhat.com/errata/RHSA-2026:60251 cve-icon
https://access.redhat.com/errata/RHSA-2026:60252 cve-icon
https://access.redhat.com/errata/RHSA-2026:60254 cve-icon
https://access.redhat.com/errata/RHSA-2026:60256 cve-icon
https://access.redhat.com/errata/RHSA-2026:60259 cve-icon
https://access.redhat.com/errata/RHSA-2026:66488 cve-icon
https://access.redhat.com/security/cve/CVE-2025-14813 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2458640 cve-icon
https://github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3 cve-icon cve-icon
https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f cve-icon cve-icon
https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813 cve-icon cve-icon cve-icon
https://nvd.nist.gov/vuln/detail/CVE-2025-14813 cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.json cve-icon
https://www.cve.org/CVERecord?id=CVE-2025-14813 cve-icon
History
Type Values Removed Values Added
Description Use of a Broken or Risky Cryptographic Algorithm vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (core modules). This vulnerability is associated with program files G3413CTRBlockCipher. GOSTCTR implementation unable to process more than 255 blocks correctly. This issue affects BC-JAVA: from 1.59 before 1.84. : Use of a Broken or Risky Cryptographic Algorithm vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (core modules). This vulnerability is associated with program files G3413CTRBlockCipher. This issue affects BC-JAVA: from 1.59 before 1.80.2, from 1.81 before 1.81.1, from 1.82 before 1.84.
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Bouncycastle
Bouncycastle bc-java
Vendors & Products Bouncycastle
Bouncycastle bc-java
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

cvssV4_0

{'score': 9.3, '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'}

Type Values Removed Values Added
Description Use of a Broken or Risky Cryptographic Algorithm vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (core modules). This vulnerability is associated with program files G3413CTRBlockCipher. GOSTCTR implementation unable to process more than 255 blocks correctly. This issue affects BC-JAVA: from 1.59 before 1.84.
Title GOSTCTR implementation unable to process more than 255 blocks correctly
Weaknesses CWE-327
References
Metrics cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-327

    Use of a Broken or Risky Cryptographic Algorithm

Sources

Status
PUBLISHED
Assigner
bcorg
Published
Updated
Sep 18, 2026, 12:04 PM
Reserved
Dec 17, 2025, 12:17 AM
Status
Awaiting Analysis
Published
Apr 15, 2026, 10:16 AM
Modified
Oct 7, 2026, 9:10 AM
Severity
Important
Public date
Apr 15, 2026, 8:56 AM