CVE-2025-14813
JSON

9.3critical

GOSTCTR implementation unable to process more than 255 blocks correctly

Severity
9.3critical CVSS:4.0 by bcorg
Exploit likelihood
0.33% (higher than 28% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
bcorg
Also known as
GHSA-574f-3g2m-x479

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.

Affected

Product or packageVersionsReported by
bcprovfrom 1.59 before 1.80.2, from 1.81 before 1.81.1, from 1.82 before 1.84
Not affected: from debug-jdk15on before *
CVE List
bcprov-jdk18onNot specifiedCVE List
bcprov-jdk15onNot specifiedCVE List
bcprov-lts8onNot specifiedCVE List
eap7-activemq-artemisNot specified
Not affected: from 0:2.16.0-22.redhat_00057.1.el7eap before *, from 0:2.16.0-22.redhat_00057.1.el8eap before *, from 0:2.16.0-22.redhat_00057.1.el9eap before *
CVE List
eap7-glassfish-jsfNot specified
Not affected: from 0:2.3.14-11.SP11_redhat_00001.1.el7eap before *, from 0:2.3.14-11.SP11_redhat_00001.1.el8eap before *, from 0:2.3.14-11.SP11_redhat_00001.1.el9eap before *
CVE List
eap7-ironjacamarNot specified
Not affected: from 0:1.5.26-2.Final_redhat_00001.1.el7eap before *, from 0:1.5.26-2.Final_redhat_00001.1.el8eap before *, from 0:1.5.26-2.Final_redhat_00001.1.el9eap before *
CVE List
eap7-jackson-annotationsNot specified
Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before *
CVE List
eap7-jackson-coreNot specified
Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before *
CVE List
eap7-jackson-databindNot specified
Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before *
CVE List
eap7-jackson-jaxrs-providersNot specified
Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before *
CVE List
eap7-jackson-modules-baseNot specified
Not affected: from 0:2.18.8-1.redhat_00003.1.el7eap before *, from 0:2.18.8-1.redhat_00003.1.el8eap before *, from 0:2.18.8-1.redhat_00003.1.el9eap before *
CVE List

All scores

bcorg9.3critical CVSS:4.0CVSS: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
redhat-SADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubcritical CVSS:4.0CVSS: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

Classification

CWE-323CWE-327

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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

GitHub Advisory Database

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

NVD (es)

Vulnerabilidad de uso de un algoritmo criptográfico roto o arriesgado en Legion of the Bouncy Castle Inc. BC-JAVA bcprov en todos (módulos centrales). Esta vulnerabilidad está asociada con los archivos de programa G3413CTRBlockCipher. La implementación de GOSTCTR es incapaz de procesar más de 255 bloques correctamente. Este problema afecta a BC-JAVA: desde 1.59 antes de 1.84.

References

https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813vendor-advisory, web
https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871fpatch, web
https://github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3patch, web
https://access.redhat.com/security/cve/CVE-2025-14813vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2458640issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.jsonweb
https://access.redhat.com/errata/RHSA-2026:53644vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:53645vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:18054vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:53646vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:18055vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:60247vendor-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2025-14813 changed 2026-09-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-574f-3g2m-x479 changed 2026-09-24CC-BY-4.0
NVDCVE-2025-14813 changed 2026-10-07Public domain