7.5high
go-f3 module vulnerable to integer overflow leading to panic
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-g99p-47x7-mq88GO-2025-3990
Description
go-f3 is a Golang implementation of Fast Finality for Filecoin (F3). In versions 0.8.6 and below, go-f3 panics when it validates a "poison" messages causing Filecoin nodes consuming F3 messages to become vulnerable. A "poison" message can can cause integer overflow in the signer index validation, which can cause the whole node to crash. These malicious messages aren't self-propagating since the bug is in the validator. An attacker needs to directly send the message to all targets. This issue is fixed in version 0.8.7.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| filecoin-project go-f3 | < 0.8.7 | CVE List |
| github.com/filecoin-project/go-f3 (Go) | before 0.8.7 | GitHub Advisory Database, Go Vulnerability Database |
| filecoin go-f3 | before 0.8.7 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, 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.6 and below, go-f3 panics when it validates a "poison" messages causing Filecoin nodes consuming F3 messages to become vulnerable. A "poison" message can can cause integer overflow in the signer index validation, which can cause the whole node to crash. These malicious messages aren't self-propagating since the bug is in the validator. An attacker needs to directly send the message to all targets. This issue is fixed in version 0.8.7.
GitHub Advisory Database
Impact
Filecoin nodes consuming F3 messages are vulnerable. go-f3 panics when it validates a "poison" messages. A "poison" message can can cause integer overflow in the signer index validation. In Lotus' case, the whole node will crash.
There is no barrier to entry. An attacker doesn't need any power to pull off this attack.
These malicious messages aren't self-propagating since the bug is in the validator. An attacker needs to directly send the message to all targets.
Patches
The fix was merged and released with go-f3 0.8.7. All node software (Lotus, Forest, Venus) are using a patched version of go-f3 with their updates for the nv27 network upgrade.
go-f3 now does proper overflow checking using math.MaxInt64 comparison and returns error "justificationPower overflow" when overflow would occur.
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 initial finding(unrelated path) was reported by 0xNirix via bug bounty program which wasn't high issue. The further digging by developers led to this finding. Thank you for the contributions.
Go Vulnerability Database
go-f3 module vulnerable to integer overflow leading to panic 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.6 e inferiores, go-f3 entra en pánico cuando valida mensajes 'envenenados', lo que hace que los nodos de Filecoin que consumen mensajes F3 se vuelvan vulnerables. Un mensaje 'envenenado' puede causar un desbordamiento de entero en la validación del índice del firmante, lo que puede provocar la caída de todo el nodo. Estos mensajes maliciosos no se autopropagan, ya que el error está en el validador. Un atacante necesita enviar directamente el mensaje a todos los objetivos. Este problema está solucionado en la versión 0.8.7.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-59942 changed 2025-09-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g99p-47x7-mq88 changed 2025-10-23 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3990 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2025-59942 changed 2026-10-09 | Public domain |