CVE-2025-59941
JSON

5.9medium

go-f3 is Vulnerable to Cached Justification Verification Bypass

Severity
5.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7pq9-rf9p-wcrfGO-2025-3989

Description

go-f3 is a Golang implementation of Fast Finality for Filecoin (F3). In versions 0.8.8 and below, go-f3's justification verification caching mechanism has a vulnerability where verification results are cached without properly considering the context of the message. An attacker can bypass justification verification by submitting a valid message with a correct justification and then reusing the same cached justification in contexts where it would normally be invalid. This occurs because the cached verification does not properly validate the relationship between the justification and the specific message context it's being used with. This issue is fixed in version 0.8.9.

Affected

Product or packageVersionsReported by
filecoin-project go-f3< 0.8.9CVE List
github.com/filecoin-project/go-f3 (Go)before 0.8.9GitHub Advisory Database, Go Vulnerability Database
filecoin go-f3before 0.8.9NVD

All scores

GitHub_M5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L

Classification

CWE-305

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

What each source says

CVE List

go-f3 is a Golang implementation of Fast Finality for Filecoin (F3). In versions 0.8.8 and below, go-f3's justification verification caching mechanism has a vulnerability where verification results are cached without properly considering the context of the message. An attacker can bypass justification verification by submitting a valid message with a correct justification and then reusing the same cached justification in contexts where it would normally be invalid. This occurs because the cached verification does not properly validate the relationship between the justification and the specific message context it's being used with. This issue is fixed in version 0.8.9.

GitHub Advisory Database
Description

A vulnerability exists in go-f3's justification verification caching mechanism where verification results are cached without properly considering the context of the message. An attacker can bypass justification verification by:

  1. First submitting a valid message with a correct justification
  2. Then reusing the same cached justification in contexts where it would normally be invalid

This occurs because the cached verification does not properly validate the relationship between the justification and the specific message context it's being used with.

Impact
  • Potential consensus integrity issues through invalid justification acceptance
  • Could affect network liveness if exploited systematically
  • May allow malicious actors to influence consensus decisions with invalid justifications
  • Requires significant power (350+ TiB due to power table rounding) to meaningfully exploit
  • It would also be difficult to exploit in a synchronised fashion, such that >1/3 of the network goes down at one time. This isn't a one-msg panic, where you can spam it and bring everyone down, because every node will have a different amount of memory andmany SPs also run redundant lotus nodes.
Patches

The fix was merged and released with go-f3 0.8.9. All node software (Lotus, Forest, Venus) are using a patched version of go-f3 with their updates for the nv27 network upgrade.

Workarounds

The are no immediate workarounds available. Nodes should upgrade to the patched version, which they will have done if participating in nv27 on Filecoin mainnet.

Credits

The bug was reported by @lgprbs via our bug bounty program. Thank you for the contributions.

Go Vulnerability Database

go-f3 Vulnerable to Cached Justification Verification Bypass in github.com/filecoin-project/go-f3

NVD (es)

go-f3 es una implementación en Golang de Fast Finality para Filecoin (F3). En las versiones 0.8.8 e inferiores, el mecanismo de caché de verificación de justificación de go-f3 tiene una vulnerabilidad donde los resultados de la verificación se almacenan en caché sin considerar adecuadamente el contexto del mensaje. Un atacante puede eludir la verificación de justificación al enviar un mensaje válido con una justificación correcta y luego reutilizar la misma justificación almacenada en caché en contextos donde normalmente sería inválida. Esto ocurre porque la verificación almacenada en caché no valida adecuadamente la relación entre la justificación y el contexto específico del mensaje con el que se está utilizando. Este problema está solucionado en la versión 0.8.9.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59941 changed 2025-09-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-7pq9-rf9p-wcrf changed 2025-10-23CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3989 changed 2026-03-03CC-BY-4.0
NVDCVE-2025-59941 changed 2026-10-09Public domain