{"id":"CVE-2022-44797","aliases":["EUVD-2022-7197","GHSA-2chg-86hq-7w38","GO-2022-1098","UBUNTU-CVE-2022-44797"],"status":"published","title":"btcd 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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01563,"percentile":0.75633,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2022-11-07T00:00:00Z","modified":"2026-10-28T02:31:11Z","fixes":[{"ecosystem":"Go","package":"github.com/lightningnetwork/lnd","fixed_in":["0.15.2-beta"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/btcsuite/btcd","fixed_in":["0.23.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/lightningnetwork/lnd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.2-beta"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/btcsuite/btcd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/btcsuite/btcd","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.23.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/lightningnetwork/lnd","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.15.2-beta"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/btcsuite/btcd","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.23.2"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"golang-github-btcsuite-btcd-btcec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20161101.0.g8343278-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"golang-github-btcsuite-btcd-btcec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20161101.0.g8343278-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"golang-github-btcsuite-btcd-btcec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20161101.0.g8343278-1.1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"golang-github-btcsuite-btcd-btcec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20161101.0.g8343278-1.1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"golang-github-btcsuite-btcd-btcec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20161101.0.g8343278-1.1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"golang-github-btcsuite-btcd-btcec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20161101.0.g8343278-1.1","0.0~git20161101.0.g8343278-2"]}],"products":[{"vendor":"btcd_project","product":"btcd"}],"references":[{"url":"https://github.com/lightningnetwork/lnd/issues/7002","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/lightningnetwork/lnd/releases/tag/v0.15.2-beta","tags":["x_transferred","Release Notes","Third Party Advisory","web","report"]},{"url":"https://github.com/btcsuite/btcd/pull/1896","tags":["x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/btcsuite/btcd/releases/tag/v0.23.2","tags":["x_transferred","Release Notes","Third Party Advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-44797","tags":["advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2022-1098","tags":["web"]},{"url":"https://github.com/btcsuite/btcd/commit/7fdaf6958781df46fffee4bc8bee38801c066da8","tags":["web"]},{"url":"https://github.com/advisories/GHSA-2chg-86hq-7w38","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/44xxx/CVE-2022-44797.json","tags":["advisory"]},{"url":"https://github.com/btcsuite/btcd","tags":["package"]},{"url":"https://github.com/btcsuite/btcd/pull/1896/commits/f523d4ccaa5f34a2f761f16a05f5d6e6665b1168","tags":["fix"]},{"url":"https://ubuntu.com/security/CVE-2022-44797","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-44797","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-44797","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.","status":"published","published":"2022-11-07T00:00:00Z","modified":"2025-05-01T17:38:04.083Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"updated_at":"2026-11-02T14:34:30.176321Z"}],"euvd":[{"id":"EUVD-2022-7197","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.","status":"published","published":"2022-11-07T00:00:00Z","modified":"2025-05-01T17:38:04Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:51:56.915258Z"}],"ghsa":[{"id":"GHSA-2chg-86hq-7w38","title":"btcd 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.\n\n### Specific Go Packages Affected\ngithub.com/btcsuite/btcd/wire","status":"published","published":"2022-11-07T12:00:34Z","modified":"2024-05-20T21:36:56Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T14:37:50.750599Z"}],"nvd":[{"id":"CVE-2022-44797","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.","status":"published","published":"2022-11-07T04:15:09.65Z","modified":"2026-06-17T05:08:57.067Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"updated_at":"2026-11-02T14:07:31.504574Z"}],"osv":[{"id":"CVE-2022-44797","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.","status":"published","published":"2022-11-07T00:00:00Z","modified":"2026-10-28T02:31:11.036474029Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:27.481647Z"},{"id":"GHSA-2chg-86hq-7w38","title":"btcd 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.\n\n### Specific Go Packages Affected\ngithub.com/btcsuite/btcd/wire","status":"published","published":"2022-11-07T12:00:34Z","modified":"2024-05-20T21:36:55Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:46:34.338541Z"},{"id":"UBUNTU-CVE-2022-44797","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.","status":"published","published":"2022-11-07T04:15:00Z","modified":"2026-05-20T16:08:19.476664047Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:53:56.473586Z"},{"id":"GO-2022-1098","title":"Denial of service in message decoding in github.com/btcsuite/btcd","description":"Erroneous message decoding can cause denial of service.\n\nImproper checking of maximum witness size during node message decoding prevented nodes in Lightning Labs lnd (before 0.15.2-beta) to sync.","status":"published","published":"2022-11-08T16:49:06Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
