Go Vulnerability Database
GO-2024-3189
Consensus failure in github.com/btcsuite/btcd
Details
The btcd Bitcoin client (versions 0.10 to 0.24) did not correctly re-implement Bitcoin Core's 'FindAndDelete()' functionality, causing discrepancies in the validation of Bitcoin blocks. This can lead to a chain split (accepting an invalid block) or Denial of Service (DoS) attacks (rejecting a valid block). An attacker can trigger this vulnerability by constructing a 'standard' Bitcoin transaction that exhibits different behaviors in 'FindAndDelete()' and 'removeOpcodeByData()'.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/btcsuite/btcd | All versions before 0.24.2-beta.rc1 (fixed in 0.24.2-beta.rc1) |