Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Maven
Not in CISA KEV

GHSA-574f-3g2m-x479

Fix: bcgit/bc-java@b425743

GHSA-574f-3g2m-x479 is a Broken Cryptographic Algorithm vulnerability in org.bouncycastle:bcprov-jdk14. O3 Security confirms whether GHSA-574f-3g2m-x479 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks

Also known asCVE-2025-14813
Published
Apr 17, 2026
Updated
Jul 3, 2026
Affected
24 pkgs
Patched
8 / 24
Exploits
None indexed
Exploitation data as of Aug 12, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-574f-3g2m-x479.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs24th percentile — riskier than 24% of all scored CVEsHighest risk
0.00%0.27%0.54%0.81%0.0%0.0%0.3%0.3%0.3%May 26Jul 26Aug 26

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

Real-World Exposure

24 pkgs affected
org.bouncycastle:bcprov-jdk14org.bouncycastle:bcprov-jdk15to18org.bouncycastle:bcprov-jdk18onorg.bouncycastle:bcprov-debug-jdk14org.bouncycastle:bcprov-debug-jdk15to18org.bouncycastle:bcprov-debug-jdk18onorg.bouncycastle:bcprov-ext-jdk14org.bouncycastle:bcprov-ext-jdk15to18+16 more

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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

Affected Packages

24 total 8 fixed
EcosystemPackageVulnerable rangeFix
Mavenorg.bouncycastle:bcprov-jdk141.59No fix
Mavenorg.bouncycastle:bcprov-jdk15to181.59No fix
Mavenorg.bouncycastle:bcprov-jdk18on1.59&&< 1.80.21.80.2
Mavenorg.bouncycastle:bcprov-debug-jdk141.59No fix
Mavenorg.bouncycastle:bcprov-debug-jdk15to181.59No fix
Mavenorg.bouncycastle:bcprov-debug-jdk18on1.59No fix

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.bouncycastle:bcprov-jdk14. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    No patched version of org.bouncycastle:bcprov-jdk14 has shipped for GHSA-574f-3g2m-x479 yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-574f-3g2m-x479 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-574f-3g2m-x479. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant

To exploit this flaw, an attacker needs to capture ciphertext encrypted by the `GOSTCTR` implementation where the `G3413CTRBlockCipher` processed more than 255 blocks of data, resulting in keystream reuse. An attack typically requires capturing these overlapping ciphertexts to perform cryptanalysis and uncover the…

Frequently Asked Questions

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).
O3 Security · Impact-Aware SCA

Is GHSA-574f-3g2m-x479 in your dependencies?

O3 detects GHSA-574f-3g2m-x479 across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.

GHSA-574f-3g2m-x479: bcprov-jdk14 | O3 Security