VDB
Sign up
MEDIUM

GHSA-3jgf-r68h-xfqm

btcd susceptible to consensus failures

Quick fix

GHSA-3jgf-r68h-xfqm — github.com/btcsuite/btcd: upgrade to the fixed version with the command below.

go get github.com/btcsuite/btcd@v0.24.0

Details

btcd before 0.24.0 does not correctly implement the consensus rules outlined in BIP 68 and BIP 112, making it susceptible to consensus failures. Specifically, it uses the transaction version as a signed integer when it is supposed to be treated as unsigned. There can be a chain split and loss of funds.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/btcsuite/btcd
Introduced in: 0Fixed in: 0.24.0
Fixgo get github.com/btcsuite/btcd@v0.24.0

References