Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
CVE-2025-14813GHSA-574f-3g2m-x479
What to do
Partial vendor fix. Follow the primary source's mitigation guidance and check back for a fix.
This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.
Affected packages
Maven org.bouncycastle:bcprov-jdk14
- Affected
- >= 1.59, <= 1.80.1>= 1.81.0, <= 1.81.0>= 1.82, <= 1.83
- Fixed in
- 1.84
Maven org.bouncycastle:bcprov-jdk15to18
- Affected
- >= 1.59, <= 1.80.1>= 1.81.0, <= 1.81.0>= 1.82, <= 1.83
- Fixed in
- 1.84
Maven org.bouncycastle:bcprov-ext-debug-jdk15to18
- Affected
- >= 1.59, <= 1.77
- Fixed in
- no fixed version recorded
Maven org.bouncycastle:bcprov-ext-jdk15to18
- Affected
- >= 1.59, <= 1.78.1
- Fixed in
- no fixed version recorded
Maven org.bouncycastle:bcprov-debug-jdk15on
- Affected
- <= 1.7.0
- Fixed in
- no fixed version recorded
Maven org.bouncycastle:bcprov-debug-jdk15to18
- Affected
- >= 1.59, <= 1.80.1>= 1.81.0, <= 1.81.0>= 1.82, <= 1.83
- Fixed in
- 1.84
Maven org.bouncycastle:bcprov-ext-jdk14
- Affected
- >= 1.59, <= 1.78.1
- Fixed in
- no fixed version recorded
Maven org.bouncycastle:bcprov-ext-jdk18on
- Affected
- >= 1.59, <= 1.78.1
- Fixed in
- no fixed version recorded
Maven org.bouncycastle:bcprov-debug-jdk14
- Affected
- >= 1.59, <= 1.80.1>= 1.81.0, <= 1.81.0>= 1.82, <= 1.83
- Fixed in
- 1.84
Maven org.bouncycastle:bcprov-jdk18on
- Affected
- >= 1.59, <= 1.80.1>= 1.81.0, <= 1.81.0>= 1.82, <= 1.83
- Fixed in
- 1.81.1, 1.84, 1.80.2
Maven org.bouncycastle:bcprov-ext-debug-jdk18on
- Affected
- >= 1.59, <= 1.77
- Fixed in
- no fixed version recorded
Maven org.bouncycastle:bcprov-ext-debug-jdk14
- Affected
- >= 1.59, <= 1.74
- Fixed in
- no fixed version recorded
Maven org.bouncycastle:bcprov-debug-jdk18on
- Affected
- >= 1.59, <= 1.80.1>= 1.81.0, <= 1.81.0>= 1.82, <= 1.83
- Fixed in
- 1.84
Maven org.bouncycastle:bcprov-jdk15on
- Affected
- <= 1.7.0
- Fixed in
- no fixed version recorded
Sources
- GitHub Advisory Database and maintainer security advisories on GitHub
GitHub-reviewed advisory GHSA-574f-3g2m-x479 lists affected ranges: Maven org.bouncycastle:bcprov-jdk14 >=1.59 =1.81.0 =1.82 =1.59 =1.81.0 =1.82 =1.59 =1.81.0 =1.82 =1.59 =1.81.0 =1.82 =1.59 <=1.80.1,…
VerifiedObserved Structured GitHub Advisory Database record (type=reviewed) from the GitHub REST API.
Severity and exploitation
- Exploitation
- No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
- CVSS 4.0
- 9.3 · 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 · score source
- EPSS
- CVE-2025-14813: 0.32% estimated exploitation activity in the next 30 days; percentile 25.00 (FIRST EPSS, 2026-11-03). This is a model estimate, not proof of exploitation or customer exposure.
Source description
As published by the source; long descriptions are shortened.
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).
Dates and revisions
- Published by the source
- Last modified by the source
- Source last checked
- Revision 1 · created ·
Published from ghsa record GHSA-574f-3g2m-x479
Agent brief
Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.
# Patch Next advisory brief: CVE-2025-14813 Advisory: Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks IDs: CVE-2025-14813, GHSA-574f-3g2m-x479 Record: https://patchnext.com/advisories/cve-2025-14813 (revision 1, source checked 26 Oct 2026, 16:55 UTC) Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected. Severity: Critical (CVSS 9.3) Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV. Vendor response: Partial vendor fix; fixed versions by package: org.bouncycastle:bcprov-jdk14 1.84; org.bouncycastle:bcprov-jdk15to18 1.84; org.bouncycastle:bcprov-debug-jdk15to18 1.84; org.bouncycastle:bcprov-debug-jdk14 1.84; org.bouncycastle:bcprov-jdk18on 1.84, 1.81.1, 1.80.2; org.bouncycastle:bcprov-debug-jdk18on 1.84. A vendor fix does not mean a deployment is fixed. ## Affected components - Maven org.bouncycastle:bcprov-jdk14: affected >= 1.59, <= 1.80.1; >= 1.81.0, <= 1.81.0; >= 1.82, <= 1.83; fixed in 1.84 - Maven org.bouncycastle:bcprov-jdk15to18: affected >= 1.59, <= 1.80.1; >= 1.81.0, <= 1.81.0; >= 1.82, <= 1.83; fixed in 1.84 - Maven org.bouncycastle:bcprov-ext-debug-jdk15to18: affected >= 1.59, <= 1.77 - Maven org.bouncycastle:bcprov-ext-jdk15to18: affected >= 1.59, <= 1.78.1 - Maven org.bouncycastle:bcprov-debug-jdk15on: affected <= 1.7.0 - Maven org.bouncycastle:bcprov-debug-jdk15to18: affected >= 1.59, <= 1.80.1; >= 1.81.0, <= 1.81.0; >= 1.82, <= 1.83; fixed in 1.84 - Maven org.bouncycastle:bcprov-ext-jdk14: affected >= 1.59, <= 1.78.1 - Maven org.bouncycastle:bcprov-ext-jdk18on: affected >= 1.59, <= 1.78.1 - Maven org.bouncycastle:bcprov-debug-jdk14: affected >= 1.59, <= 1.80.1; >= 1.81.0, <= 1.81.0; >= 1.82, <= 1.83; fixed in 1.84 - Maven org.bouncycastle:bcprov-jdk18on: affected >= 1.59, <= 1.80.1; >= 1.81.0, <= 1.81.0; >= 1.82, <= 1.83; fixed in 1.81.1, 1.84, 1.80.2 - Maven org.bouncycastle:bcprov-ext-debug-jdk18on: affected >= 1.59, <= 1.77 - Maven org.bouncycastle:bcprov-ext-debug-jdk14: affected >= 1.59, <= 1.74 - Maven org.bouncycastle:bcprov-debug-jdk18on: affected >= 1.59, <= 1.80.1; >= 1.81.0, <= 1.81.0; >= 1.82, <= 1.83; fixed in 1.84 - Maven org.bouncycastle:bcprov-jdk15on: affected <= 1.7.0 ## Suggested inspection (read-only) - Maven org.bouncycastle:bcprov-jdk14: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-jdk15to18: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-ext-debug-jdk15to18: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-ext-jdk15to18: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-debug-jdk15on: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-debug-jdk15to18: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-ext-jdk14: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-ext-jdk18on: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-debug-jdk14: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-jdk18on: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-ext-debug-jdk18on: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-ext-debug-jdk14: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-debug-jdk18on: check the installed version with your package manager. - Maven org.bouncycastle:bcprov-jdk15on: check the installed version with your package manager. ## Supported action No complete vendor fix is recorded. Follow the primary source's mitigation guidance and check this record again before closing anything. ## Required regression checks - Run the test suite and a production build. - Exercise the features that depend on org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15to18, org.bouncycastle:bcprov-ext-debug-jdk15to18, org.bouncycastle:bcprov-ext-jdk15to18, org.bouncycastle:bcprov-debug-jdk15on, org.bouncycastle:bcprov-debug-jdk15to18, org.bouncycastle:bcprov-ext-jdk14, org.bouncycastle:bcprov-ext-jdk18on, org.bouncycastle:bcprov-debug-jdk14, org.bouncycastle:bcprov-jdk18on, org.bouncycastle:bcprov-ext-debug-jdk18on, org.bouncycastle:bcprov-ext-debug-jdk14, org.bouncycastle:bcprov-debug-jdk18on, org.bouncycastle:bcprov-jdk15on. - Repeat the inspection and confirm that only fixed versions remain installed. ## Rollback considerations - Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward. ## Unresolved questions - Which deployments run an affected version? - Exploitation status can change. Check again before lowering the priority. - Mark the work resolved only after the fixed version is verified in production. ## Sources - Verified: https://github.com/advisories/GHSA-574f-3g2m-x479 (GitHub-reviewed advisory GHSA-574f-3g2m-x479 lists affected ranges: Maven org.bouncycastle:bcprov-jdk14 >=1.59 =1.81.0 =1.82 =1.59 =1.81.0 =1.82 =1.59 =1.81.0 =1.82 =1.59 =1.81.0 =1.82 =1.59 <=1.80.1,…) Commands are suggestions: review each one before running it.
Loading voting…