Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bcprov-debug-jdk18on
  4. ›
  5. CVE-2025-14813

CVE-2025-14813: Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks

April 17, 2026 (updated June 30, 2026)

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

References

  • access.redhat.com/errata/RHSA-2026:11720
  • access.redhat.com/errata/RHSA-2026:11721
  • access.redhat.com/errata/RHSA-2026:13631
  • access.redhat.com/errata/RHSA-2026:14272
  • access.redhat.com/errata/RHSA-2026:14276
  • access.redhat.com/errata/RHSA-2026:17668
  • access.redhat.com/errata/RHSA-2026:18054
  • access.redhat.com/errata/RHSA-2026:18055
  • access.redhat.com/errata/RHSA-2026:18059
  • access.redhat.com/errata/RHSA-2026:21772
  • access.redhat.com/errata/RHSA-2026:24977
  • access.redhat.com/security/cve/CVE-2025-14813
  • bugzilla.redhat.com/show_bug.cgi?id=2458640
  • github.com/advisories/GHSA-574f-3g2m-x479
  • github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3
  • github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f
  • github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813
  • nvd.nist.gov/vuln/detail/CVE-2025-14813
  • security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.json

Code Behaviors & Features

Detect and mitigate CVE-2025-14813 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

Version 1.81.0, all versions starting from 1.59.0 up to 1.80.1, all versions starting from 1.82.0 before 1.84.0

Fixed versions

  • 1.84.0

Solution

Upgrade to version 1.84.0 or above.

Impact 9 CRITICAL

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-323: Reusing a Nonce, Key Pair in Encryption

Source file

maven/org.bouncycastle/bcprov-debug-jdk18on/CVE-2025-14813.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 12 Jul 2026 12:17:10 +0000.