CVE-2022-44797
btcd mishandles witness size checking
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2022-44797- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
CVE List
9.8
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.
- Record
CVE-2022-44797- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
EUVDEUVD-2022-7197
9.8
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.
- Record
EUVD-2022-7197- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-2chg-86hq-7w38
9.8
btcd mishandles witness size checking
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
- Record
GHSA-2chg-86hq-7w38- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2022-44797- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-2chg-86hq-7w38
9.8
btcd mishandles witness size checking
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
- Record
GHSA-2chg-86hq-7w38- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-44797
9.8
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.
- Record
UBUNTU-CVE-2022-44797- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGO-2022-1098 No score
Denial of service in message decoding in github.com/btcsuite/btcd
Erroneous message decoding can cause denial of service.
Improper checking of maximum witness size during node message decoding prevented nodes in Lightning Labs lnd (before 0.15.2-beta) to sync.
- Record
GO-2022-1098- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/lightningnetwork/lndGo |
before 0.15.2-beta | 0.15.2-beta |
github.com/btcsuite/btcdGo |
before 0.23.2 | 0.23.2 |
golang-github-btcsuite-btcd-btcecUbuntu:18.04:LTS |
All versions, plus listed versions 0.0~git20161101.0.g8343278-1 |
None known |
golang-github-btcsuite-btcd-btcecUbuntu:20.04:LTS |
All versions, plus listed versions 0.0~git20161101.0.g8343278-1 |
None known |
golang-github-btcsuite-btcd-btcecUbuntu:22.04:LTS |
All versions, plus listed versions 0.0~git20161101.0.g8343278-1.1 |
None known |
golang-github-btcsuite-btcd-btcecUbuntu:24.04:LTS |
All versions, plus listed versions 0.0~git20161101.0.g8343278-1.1 |
None known |
golang-github-btcsuite-btcd-btcecUbuntu:25.10 |
All versions, plus listed versions 0.0~git20161101.0.g8343278-1.1 |
None known |
golang-github-btcsuite-btcd-btcecUbuntu:26.04:LTS |
All versions, plus listed versions 0.0~git20161101.0.g8343278-1.10.0~git20161101.0.g8343278-2 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-44797 is a critical vulnerability (CVSS 9.8) in Btcd Project Btcd, published November 7, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.30%, the 70th percentile. Fixed in github.com/lightningnetwork/lnd 0.15.2-beta.
References
github.com/lightningnetwork/lnd/issues/7002
github.com/lightningnetwork/lnd/releases/tag/v0.15.2-beta
github.com/btcsuite/btcd/pull/1896
github.com/btcsuite/btcd/releases/tag/v0.23.2
nvd.nist.gov/vuln/detail/CVE-2022-44797
pkg.go.dev/vuln/GO-2022-1098
Show 7 moreShow less
github.com/btcsuite/btcd/commit/7fdaf6958781df46fffee4bc8bee38801c066da8
github.com/advisories/GHSA-2chg-86hq-7w38
github.com/CVEProject/cvelistV5/tree/main/cves/2022/44xxx/CVE-2022-44797.json
github.com/btcsuite/btcd
github.com/btcsuite/btcd/pull/1896/commits/f523d4ccaa5f34a2f761f16a05f5d6e6665b1168
ubuntu.com/security/CVE-2022-44797
cve.org/CVERecord?id=CVE-2022-44797