# CVE-2022-44797: btcd mishandles witness size checking

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.60%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-07T00:00:00.000Z
- Modified: 2026-06-17T05:08:57.067Z
- Also known as: GHSA-2chg-86hq-7w38, GO-2022-1098
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/btcsuite/btcd (Go): before 0.23.2
- github.com/lightningnetwork/lnd (Go): before 0.15.2-beta
- btcd_project btcd: before 0.23.2

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- NVD: 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`

## References

- <https://github.com/lightningnetwork/lnd/issues/7002> (exploit, issue-tracking, report, third-party-advisory, web)
- <https://github.com/lightningnetwork/lnd/releases/tag/v0.15.2-beta> (release-notes, third-party-advisory, web)
- <https://github.com/btcsuite/btcd/pull/1896> (patch, third-party-advisory, web)
- <https://github.com/btcsuite/btcd/releases/tag/v0.23.2> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-44797> (advisory)
- <https://github.com/btcsuite/btcd/commit/7fdaf6958781df46fffee4bc8bee38801c066da8> (web)
- <https://github.com/btcsuite/btcd> (package)
- <https://pkg.go.dev/vuln/GO-2022-1098> (web)
- <https://github.com/advisories/GHSA-2chg-86hq-7w38> (advisory)
- <https://github.com/btcsuite/btcd/pull/1896/commits/f523d4ccaa5f34a2f761f16a05f5d6e6665b1168> (fix)

## Sources

- CVE List: [CVE-2022-44797](https://www.cve.org/CVERecord?id=CVE-2022-44797), CVE Terms of Use, modified 2025-05-01
- GitHub Advisory Database: [GHSA-2chg-86hq-7w38](https://github.com/advisories/GHSA-2chg-86hq-7w38), CC-BY-4.0, modified 2024-05-20
- Go Vulnerability Database: [GO-2022-1098](https://pkg.go.dev/vuln/GO-2022-1098), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-44797](https://nvd.nist.gov/vuln/detail/CVE-2022-44797), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-44797 · Whole record: https://cve.day/CVE-2022-44797.json · Rebuilt by cve.day 2026-11-25T22:58:16.247Z
