{"id":"CVE-2025-59941","aliases":["CVE-2025-59941","GHSA-7pq9-rf9p-wcrf","GO-2025-3989"],"related":[],"kind":"vulnerability","state":"published","title":"go-f3 is Vulnerable to Cached Justification Verification Bypass","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Description\nA 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:\n1. First submitting a valid message with a correct justification\n2. Then reusing the same cached justification in contexts where it would normally be invalid\n\nThis occurs because the cached verification does not properly validate the relationship between the justification and the specific message context it's being used with.\n\n### Impact\n- Potential consensus integrity issues through invalid justification acceptance\n- Could affect network liveness if exploited systematically\n- May allow malicious actors to influence consensus decisions with invalid justifications\n- Requires significant power (350+ TiB due to power table rounding) to meaningfully exploit\n- 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.  \n\n### Patches\nThe 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.\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 bug was reported by @lgprbs via our bug bounty program. Thank you for the contributions.","format":"markdown","source":"ghsa"},{"lang":"en","text":"go-f3 Vulnerable to Cached Justification Verification Bypass 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.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.","source":"nvd"}],"published":"2025-09-29T20:40:02.000Z","modified":"2026-10-09T09:10:00.213Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-305"],"affected":[{"ranges":[{"version":"< 0.8.9","status":"affected"}],"vendor":"filecoin-project","product":"go-f3","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.9"}],"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.9"}],"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.9"}],"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-7pq9-rf9p-wcrf","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/filecoin-project/go-f3/commit/76fff18cf07b21baccf537024bdb2fb41f75f6e2#diff-e1f646cea41790e1642e4e649c9e3c526344736d67222201703e1c29c23e9625","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59941","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-3989","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-30T14:13:50.946Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59941","url":"https://www.cve.org/CVERecord?id=CVE-2025-59941","licence":"CVE Terms of Use","modified":"2025-09-30T14:13:56.958Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7pq9-rf9p-wcrf","url":"https://github.com/advisories/GHSA-7pq9-rf9p-wcrf","licence":"CC-BY-4.0","modified":"2025-10-23T20:32:35.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3989","url":"https://pkg.go.dev/vuln/GO-2025-3989","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:57.687Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59941","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59941","licence":"Public domain","modified":"2026-10-09T09:10:00.213Z"}],"updatedAt":"2026-11-25T22:59:05.335Z","epss":{"score":0.00245,"percentile":0.16783,"date":"2026-12-01T12:00:22.000Z"}}