GHSA-g99p-47x7-mq88

Suggest an improvement
Source
https://github.com/advisories/GHSA-g99p-47x7-mq88
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-g99p-47x7-mq88/GHSA-g99p-47x7-mq88.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g99p-47x7-mq88
Aliases
  • CVE-2025-59942
Published
2025-09-29T20:40:08Z
Modified
2025-09-30T15:16:09Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
go-f3 module vulnerable to integer overflow leading to panic
Details

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.

Database specific
{
    "severity": "HIGH",
    "github_reviewed": true,
    "nvd_published_at": "2025-09-29T23:15:32Z",
    "github_reviewed_at": "2025-09-29T20:40:08Z",
    "cwe_ids": [
        "CWE-190"
    ]
}
References

Affected packages

Go / github.com/filecoin-project/go-f3

Package

Name
github.com/filecoin-project/go-f3
View open source insights on deps.dev
Purl
pkg:golang/github.com/filecoin-project/go-f3

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.8.7