# CVE-2025-14813: GOSTCTR implementation unable to process more than 255 blocks correctly

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.3
- **CVSS:** 9.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: None; RE: M; U: Red
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-327
- **Aliases:** GHSA-574f-3g2m-x479
- **Published:** 2026-04-15T08:56:34.057Z
- **Modified:** 2026-10-07T09:10:00.160Z

## Who should check

- Projects that depend on Maven package org.bouncycastle:bcprov-jdk14 (\>= 1.59, \<= 1.80.1)
- Projects that depend on Maven package org.bouncycastle:bcprov-jdk15to18 (\>= 1.59, \<= 1.80.1)
- Projects that depend on Maven package org.bouncycastle:bcprov-jdk18on (\>= 1.59, \< 1.80.2)
- Projects that depend on Maven package org.bouncycastle:bcprov-debug-jdk14 (\>= 1.59, \<= 1.80.1)
- Projects that depend on Maven package org.bouncycastle:bcprov-debug-jdk15to18 (\>= 1.59, \<= 1.80.1)
- Projects that depend on Maven package org.bouncycastle:bcprov-debug-jdk18on (\>= 1.59, \<= 1.80.1)
- Projects that depend on Maven package org.bouncycastle:bcprov-ext-jdk14 (\>= 1.59, \<= 1.78.1)
- Projects that depend on Maven package org.bouncycastle:bcprov-ext-jdk15to18 (\>= 1.59, \<= 1.78.1)

## 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 and fixed versions

- Maven `org.bouncycastle:bcprov-jdk14`: affected \>= 1.59, \<= 1.80.1; fixed 1.84 (osv)
- Maven `org.bouncycastle:bcprov-jdk15to18`: affected \>= 1.59, \<= 1.80.1; fixed 1.84 (osv)
- Maven `org.bouncycastle:bcprov-jdk18on`: affected \>= 1.59, \< 1.80.2; fixed 1.80.2, 1.81.1, 1.84 (osv)
- Maven `org.bouncycastle:bcprov-debug-jdk14`: affected \>= 1.59, \<= 1.80.1; fixed 1.84 (osv)
- Maven `org.bouncycastle:bcprov-debug-jdk15to18`: affected \>= 1.59, \<= 1.80.1; fixed 1.84 (osv)
- Maven `org.bouncycastle:bcprov-debug-jdk18on`: affected \>= 1.59, \<= 1.80.1; fixed 1.84 (osv)
- Maven `org.bouncycastle:bcprov-ext-jdk14`: affected \>= 1.59, \<= 1.78.1; fixed no fix listed yet (osv)
- Maven `org.bouncycastle:bcprov-ext-jdk15to18`: affected \>= 1.59, \<= 1.78.1; fixed no fix listed yet (osv)
- Maven `org.bouncycastle:bcprov-ext-jdk18on`: affected \>= 1.59, \<= 1.78.1; fixed no fix listed yet (osv)
- Maven `org.bouncycastle:bcprov-ext-debug-jdk14`: affected \>= 1.59, \<= 1.74; fixed no fix listed yet (osv)
- Maven `org.bouncycastle:bcprov-ext-debug-jdk15to18`: affected \>= 1.59, \<= 1.77; fixed no fix listed yet (osv)
- Maven `org.bouncycastle:bcprov-ext-debug-jdk18on`: affected \>= 1.59, \<= 1.77; fixed no fix listed yet (osv)
- Maven `org.bouncycastle:bcprov-debug-jdk15on`: affected \<= 1.7.0; fixed no fix listed yet (osv)
- Maven `org.bouncycastle:bcprov-jdk15on`: affected \<= 1.7.0; fixed no fix listed yet (osv)
- Legion of the Bouncy Castle Inc. BC-JAVA: \>= 1.59, \< 1.80.2; \>= 1.81, \< 1.81.1; \>= 1.82, \< 1.84 (cvelist)

## Mitigation

- Upgrade org.bouncycastle:bcprov-jdk14 to 1.84 or later.
- Upgrade org.bouncycastle:bcprov-jdk15to18 to 1.84 or later.
- Upgrade org.bouncycastle:bcprov-jdk18on to one of 1.80.2, 1.81.1, 1.84 (or later in the same release line).
- Upgrade org.bouncycastle:bcprov-debug-jdk14 to 1.84 or later.
- Upgrade org.bouncycastle:bcprov-debug-jdk15to18 to 1.84 or later.
- Upgrade org.bouncycastle:bcprov-debug-jdk18on to 1.84 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-14813. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-14813.md
Affected: org.bouncycastle:bcprov-jdk14 >= 1.59, <= 1.80.1; org.bouncycastle:bcprov-jdk15to18 >= 1.59, <= 1.80.1; org.bouncycastle:bcprov-jdk18on >= 1.59, < 1.80.2; org.bouncycastle:bcprov-debug-jdk14 >= 1.59, <= 1.80.1; org.bouncycastle:bcprov-debug-jdk15to18 >= 1.59, <= 1.80.1; org.bouncycastle:bcprov-debu…
Fixed in: 1.84, 1.80.2, 1.81.1

Steps:
1. Search this machine and project for org.bouncycastle:bcprov-jdk14 (Maven), org.bouncycastle:bcprov-jdk15to18 (Maven), org.bouncycastle:bcprov-jdk18on (Maven), org.bouncycastle:bcprov-debug-jdk14 (Maven), org.bouncycastle:bcprov-debug-jdk15to18 (Maven), org.bouncycastle:bcprov-debug-jdk18on (Maven): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-14813 being exploited?

There is no confirmed exploitation: CVE-2025-14813 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-14813?

Critical: CVSS 9.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-14813?

org.bouncycastle:bcprov-jdk14 \>= 1.59, \<= 1.80.1; org.bouncycastle:bcprov-jdk15to18 \>= 1.59, \<= 1.80.1; org.bouncycastle:bcprov-jdk18on \>= 1.59, \< 1.80.2; org.bouncycastle:bcprov-debug-jdk14 \>= 1.59, \<= 1.80.1; org.bouncycastle:bcprov-debug-jdk15to18 \>= 1.59, \<= 1.80.1; org.bouncycastle:bcprov-debug-jdk18on \>= 1.59, \<= 1.80.1; org.bouncycastle:bcprov-ext-jdk14 \>= 1.59, \<= 1.78.1; org.bouncycastle:bcprov-ext-jdk15to18 \>= 1.59, \<= 1.78.1; org.bouncycastle:bcprov-ext-jdk18on \>= 1.59, \<= 1.78.1; org.bouncycastle:bcprov-ext-debug-jdk14 \>= 1.59, \<= 1.74; org.bouncycastle:bcprov-ext-debug-jdk15to18 \>= 1.59, \<= 1.77; org.bouncycastle:bcprov-ext-debug-jdk18on \>= 1.59, \<= 1.77; org.bouncycastle:bcprov-debug-jdk15on \<= 1.7.0; org.bouncycastle:bcprov-jdk15on \<= 1.7.0.

### Is there a fix for CVE-2025-14813?

Yes. Fixed in 1.84, 1.80.2, 1.81.1. Upgrade org.bouncycastle:bcprov-jdk14 to 1.84 or later. Upgrade org.bouncycastle:bcprov-jdk15to18 to 1.84 or later. Upgrade org.bouncycastle:bcprov-jdk18on to one of 1.80.2, 1.81.1, 1.84 (or later in the same release line). Upgrade org.bouncycastle:bcprov-debug-jdk14 to 1.84 or later. Upgrade org.bouncycastle:bcprov-debug-jdk15to18 to 1.84 or later. Upgrade org.bouncycastle:bcprov-debug-jdk18on to 1.84 or later.

### How do I check if I'm affected by CVE-2025-14813?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%9014813>
- vendor: <https://access.redhat.com/errata/RHSA-2026:53644>
- vendor: <https://access.redhat.com/errata/RHSA-2026:53645>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18054>
- vendor: <https://access.redhat.com/errata/RHSA-2026:53646>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18055>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60247>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60249>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60248>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60239>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60251>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60246>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60250>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60252>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60259>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60254>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60256>
- vendor: <https://access.redhat.com/errata/RHSA-2026:14276>
- vendor: <https://access.redhat.com/errata/RHSA-2026:14272>
- vendor: <https://access.redhat.com/errata/RHSA-2026:66488>
- vendor: <https://access.redhat.com/errata/RHSA-2026:13631>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18059>
- vendor: <https://access.redhat.com/errata/RHSA-2026:24977>
- vendor: <https://access.redhat.com/errata/RHSA-2026:21772>
- vendor: <https://access.redhat.com/errata/RHSA-2026:17668>
- vendor: <https://access.redhat.com/errata/RHSA-2026:11720>
- vendor: <https://access.redhat.com/errata/RHSA-2026:11721>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-14813>
- patch: <https://github.com/bcgit/bc-java/commit/b42574345414e4b7c8051b16fa1fafe01c29871f>
- patch: <https://github.com/bcgit/bc-java/commit/701686cb0184cd9ae103c801b3581fdf95c6d4f3>
- other: <https://access.redhat.com/security/cve/CVE-2025-14813>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2458640>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14813.json>
- other: <https://github.com/bcgit/bc-java>
- other: <https://access.redhat.com/errata/RHSA-2026:53806>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-14813>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-574f-3g2m-x479> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-14813> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-14813>
