Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/lightningnetwork/lnd
  4. ›
  5. CVE-2022-39389

CVE-2022-39389: Improper Input Validation

November 18, 2022

Lightning Network Daemon (lnd) is an implementation of a lightning bitcoin overlay network node. All lnd nodes before version v0.15.4 is vulnerable to a block parsing bug that can cause a node to enter a degraded state once encountered. In this degraded state, nodes can continue to make payments and forward HTLCs, and close out channels. Opening channels is prohibited, and also on chain transaction events will be undetected. This can cause loss of funds if a CSV expiry is researched during a breach attempt or a CLTV delta expires forgetting the funds in the HTLC. A patch is available in lnd version 0.15.4. Users are advised to upgrade. Users unable to upgrade may use the lncli updatechanpolicy RPC call to increase their CLTV value to a very high amount or increase their fee policies. This will prevent nodes from routing through your node, meaning that no pending HTLCs can be present.

References

  • github.com/advisories/GHSA-hc82-w9v8-83pr
  • github.com/lightningnetwork/lnd/issues/7096
  • github.com/lightningnetwork/lnd/pull/7098
  • github.com/lightningnetwork/lnd/releases/tag/v0.15.4-beta
  • github.com/lightningnetwork/lnd/security/advisories/GHSA-hc82-w9v8-83pr
  • nvd.nist.gov/vuln/detail/CVE-2022-39389

Code Behaviors & Features

Detect and mitigate CVE-2022-39389 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.15.4-beta

Fixed versions

  • v0.15.4-beta

Solution

Upgrade to version 0.15.4-beta or above. *Note*: 0.15.4-beta may be an unstable version. Use caution.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/github.com/lightningnetwork/lnd/CVE-2022-39389.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:00 +0000.