# CVE-2022-44797: GO-2022-1098 - Denial of service in message decoding in github.com/btcsuite/btcd

Source: https://junglewise.ai/threats/cve-2022-44797-btcd-mishandles-witness-size-checking  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-11-08  
License: CC BY 4.0 with a link back

CVE-2022-44797 · Severity: low · CVSS 3.1 · Published 2022-11-08

Denial of service in message decoding in github.com/btcsuite/btcd

Technologies: [github.com/btcsuite/btcd (Go)](https://junglewise.ai/threats/technologies/github-com-btcsuite-btcd), [github.com/lightningnetwork/lnd (Go)](https://junglewise.ai/threats/technologies/github-com-lightningnetwork-lnd). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2022-44797 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-44797 being exploited in the wild.

**How severe is CVE-2022-44797?** Low severity, with a CVSS score of 3.1, published 8 November 2022.

**Which products and versions are affected?** github.com/btcsuite/btcd (Go) SEMVER:introduced=0,fixed=0.23.2; github.com/lightningnetwork/lnd (Go) SEMVER:introduced=0,fixed=0.15.2-beta.

**Is there a fix for CVE-2022-44797?** Yes. github.com/btcsuite/btcd (Go): upgrade to 0.23.2 or later; github.com/lightningnetwork/lnd (Go): upgrade to 0.15.2-beta or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-44797?** Check whether you run github.com/btcsuite/btcd (Go) or github.com/lightningnetwork/lnd (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/btcsuite/btcd (Go): upgrade to 0.23.2 or later

  ```sh
  go get github.com/btcsuite/btcd@v0.23.2
  ```

- github.com/lightningnetwork/lnd (Go): upgrade to 0.15.2-beta or later

  ```sh
  go get github.com/lightningnetwork/lnd@v0.15.2-beta
  ```


## Affected products

- github.com/btcsuite/btcd (Go) SEMVER:introduced=0,fixed=0.23.2
- github.com/lightningnetwork/lnd (Go) SEMVER:introduced=0,fixed=0.15.2-beta

## Identifiers

- CVE-2022-44797
- GHSA-2chg-86hq-7w38
- GO-2022-1098

## Related threats

- [GO-2024-3189 - Consensus failure in github.com/btcsuite/btcd](https://junglewise.ai/threats/cve-2024-38365-btcd-did-not-correctly-re-implement-bitcoin-core-s-findanddelete)
- [GO-2022-0807 - Improper Access Control in Lightning Network Daemon in github.com/lightningnetwork/lnd](https://junglewise.ai/threats/cve-2019-12999-improper-access-control-in-lightning-network-daemon)
- [Lightning Network Daemon (LND)'s onion processing logic leads to a denial of service](https://junglewise.ai/threats/cve-2024-38359-lightning-network-daemon-lnd-s-onion-processing-logic-leads-to-a)
- [GO-2024-2818 - Consensus failures in github.com/btcsuite/btcd](https://junglewise.ai/threats/cve-2024-34478-btcd-susceptible-to-consensus-failures)
- [Witness Block Parsing DoS Vulnerability](https://junglewise.ai/threats/cve-2022-39389-witness-block-parsing-dos-vulnerability)
