{"id":"CVE-2025-59942","aliases":["CVE-2025-59942","GHSA-g99p-47x7-mq88","GO-2025-3990"],"related":[],"kind":"vulnerability","state":"published","title":"go-f3 module vulnerable to integer overflow leading to panic","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nFilecoin 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.  \n\nThere is no barrier to entry.  An attacker doesn't need any power to pull off this attack.\n\nThese malicious messages aren't self-propagating since the bug is in the validator.  An attacker needs to directly send the message to all targets.\n\n\n\n### Patches\nThe 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.\n\ngo-f3 now does proper overflow checking using `math.MaxInt64` comparison and returns error `\"justificationPower overflow\"` when overflow would occur.\n\n### Workarounds\nThe are no immediate workarounds available.  Nodes should upgrade to the patched version, which they will have done if participating in nv27 on Filecoin mainnet.\n\n### Credits\nThe initial finding(unrelated path) was reported by [0xNirix](https://github.com/0xNirix) via bug bounty program which wasn't high issue. The further digging by developers led to this finding. Thank you for the contributions.","format":"markdown","source":"ghsa"},{"lang":"en","text":"go-f3 module vulnerable to integer overflow leading to panic in github.com/filecoin-project/go-f3","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-29T20:40:08.000Z","modified":"2026-10-09T09:10:00.213Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"< 0.8.7","status":"affected"}],"vendor":"filecoin-project","product":"go-f3","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.7"}],"ecosystem":"Go","package":"github.com/filecoin-project/go-f3","purl":"pkg:golang/github.com/filecoin-project/go-f3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.7"}],"ecosystem":"Go","package":"github.com/filecoin-project/go-f3","purl":"pkg:golang/github.com/filecoin-project/go-f3","source":"go"},{"ranges":[{"status":"affected","fixed":"0.8.7"}],"vendor":"filecoin","product":"go-f3","cpe":"cpe:2.3:a:filecoin:go-f3:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/filecoin-project/go-f3/security/advisories/GHSA-g99p-47x7-mq88","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59942","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/filecoin-project/go-f3","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3990","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-09-30T13:51:07.416Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59942","url":"https://www.cve.org/CVERecord?id=CVE-2025-59942","licence":"CVE Terms of Use","modified":"2025-09-30T13:51:13.530Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g99p-47x7-mq88","url":"https://github.com/advisories/GHSA-g99p-47x7-mq88","licence":"CC-BY-4.0","modified":"2025-10-23T20:32:56.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3990","url":"https://pkg.go.dev/vuln/GO-2025-3990","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:29.118Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59942","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59942","licence":"Public domain","modified":"2026-10-09T09:10:00.213Z"}],"updatedAt":"2026-11-25T22:59:05.335Z","epss":{"score":0.00351,"percentile":0.30756,"date":"2026-12-01T12:00:22.000Z"}}