CVE-2022-44797
btcd mishandles witness size checking
critical entropyCVE-2022-44797GHSA-2chg-86hq-7w38
Entropy / wallet impact
github.com/btcsuite/btcd, github.com/lightningnetwork/lnd: btcd before 0.23.2, as used in Lightning Labs lnd before 0.15.2-beta and other Bitcoin-related products, mishandles witness size checking.
Description
btcd before 0.23.2, as used in Lightning Labs lnd before 0.15.2-beta and other Bitcoin-related products, mishandles witness size checking.
Specific Go Packages Affected
github.com/btcsuite/btcd/wire
Affected
| Kind | Name | Ecosystem | Versions |
|---|---|---|---|
| package | github.com/lightningnetwork/lnd | go | < 0.15.2-beta |
| package | github.com/btcsuite/btcd | go | < 0.23.2 |
Primary sources
- https://github.com/advisories/GHSA-2chg-86hq-7w38 (ghsa)
- https://nvd.nist.gov/vuln/detail/CVE-2022-44797 (ghsa)
- https://github.com/lightningnetwork/lnd/issues/7002 (ghsa)
- https://github.com/btcsuite/btcd/pull/1896 (ghsa)
- https://github.com/btcsuite/btcd/releases/tag/v0.23.2 (ghsa)
- https://github.com/lightningnetwork/lnd/releases/tag/v0.15.2-beta (ghsa)
- https://pkg.go.dev/vuln/GO-2022-1098 (ghsa)
- https://github.com/btcsuite/btcd/commit/7fdaf6958781df46fffee4bc8bee38801c066da8 (ghsa)
- https://github.com/btcsuite/btcd (osv)
- https://github.com/btcsuite/btcd/pull/1896/commits/f523d4ccaa5f34a2f761f16a05f5d6e6665b1168 (osv)