Skip to main content

Improper Input Validation

CVE-2022-39389

Severity Medium
Score 6.5/10

Summary

Lightning Network Daemon (lnd) is an implementation of a lightning bitcoin overlay network node. All lnd nodes versions prior to 0.15.4-beta are 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. 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. Note: This vulnerability affects the base package btcd versions prior to 0.22.3 and 0.23.x prior to 0.23.3. This issue has been patched in chaincfg/chainhash/v1.0.2, btcutil/psbt/v1.1.6, btcec/v2.3.1 as well.

  • LOW
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • LOW

CWE-20 - Improper Input Validation

The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Advisory Timeline

  • Published