Medium severity · published Nov 17, 2022
CVE-2022-39389
Lightning Network Daemon (lnd) is an implementation of a lightning bitcoin overlay network node
6.5
CVSS
1.1%
EPSS
No
On KEV
Description
Lightning Network Daemon (lnd) is an implementation of a lightning bitcoin overlay network node. All lnd nodes before version `v0.15.4` 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. 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.1% · higher than 66% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BT
Btcd · Btcd Project
before 0.23.3 · source: NVD
LN
Lightning Network Daemon · Lightning Network Daemon Project
before 0.15.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-39389
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-39389
Exploit
https://github.com/lightningnetwork/lnd/issues/7096
Patch
https://github.com/lightningnetwork/lnd/pull/7098
Release Notes
https://github.com/lightningnetwork/lnd/releases/tag/v0.15.4-beta
Third Party Advisory
https://github.com/lightningnetwork/lnd/security/advisories/GHSA-hc82-w9v8-83pr
More from Btcd
9.8
CVE-2022-44797
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
8.1
CVE-2024-38365
btcd did not correctly re-implement Bitcoin Core's "FindAndDelete()" functionality
7.5
CVE-2024-34478
btcd before 0.24.0 does not correctly implement the consensus rules outlined in BIP 68 and BIP 112, making it susceptible to consensus failures
7.5
CVE-2018-17145
Bitcoin Core 0.16.x before 0.16.2 and Bitcoin Knots 0.16.x before 0.16.2 allow remote denial of service via a flood of multiple transaction inv messages with random hashes, aka…
