CVE-2022-44797 json
btcd mishandles witness size checking
published 2022-11-07 4 y ago modified 2026-06-17 4 mo ago also GHSA-2chg-86hq-7w38 , GO-2022-1098 , EUVD-2022-7197
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/btcsuite/btcd 0.23.2
- go github.com/lightningnetwork/lnd 0.15.2-beta
- btcd_project btcd 0.23.2
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.56% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/lightningnetwork/lnd/issues/7002 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/btcsuite/btcd | <0.23.2 |
0.23.2 |
| go | github.com/lightningnetwork/lnd | <0.15.2-beta |
0.15.2-beta |
References
-
github.com
/btcsuite/btcd/pull/1896
web, patch, third-party-advisory
-
github.com
/btcsuite/btcd/commit/7fdaf6958781df46fffee4bc8bee38801c066da8
web
-
github.com
/btcsuite/btcd/pull/1896/commits/f523d4ccaa5f34a2f761f16a05f5d6e6665b1168
patch
-
github.com
/lightningnetwork/lnd/issues/7002
web, exploit, issue-tracking, third-party-advisory, report
-
github.com
/lightningnetwork/lnd/releases/tag/v0.15.2-beta
web, release-notes, third-party-advisory
-
github.com
/btcsuite/btcd/releases/tag/v0.23.2
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-44797
advisory
-
github.com
/btcsuite/btcd
package
-
pkg.go.dev
/vuln/GO-2022-1098
web
-
github.com
/advisories/GHSA-2chg-86hq-7w38
advisory
Sources
- CVE List CVE-2022-44797
- GitHub Advisory GHSA-2chg-86hq-7w38
- NVD CVE-2022-44797
- OSV GO-2022-1098
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.