CVE-2022-39389
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. High risk of service disruption.
- Exploit odds
- 1.1% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.1% in the next 30 days (EPSS).
- Severity: 8.2 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.1% · EPSS, next 30 days
- Weakness
- CWE-20 · Improper input validation
- Record status
- Modified
Affected
- Btcd Project Btcd < 0.23.3
- Lightning Network Daemon Project Lightning Network Daemon < 0.15.4
Attack profile CVSS 3.1 · 8.2
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2022-39389.md and follow it. Check whether this project is affected by CVE-2022-39389. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/lightningnetwork/lnd/issues/7096
- https://github.com/lightningnetwork/lnd/pull/7098
- https://github.com/lightningnetwork/lnd/releases/tag/v0.15.4-beta
- https://github.com/lightningnetwork/lnd/security/advisories/GHSA-hc82-w9v8-83pr
- https://github.com/lightningnetwork/lnd/issues/7096
- https://github.com/lightningnetwork/lnd/pull/7098
- https://github.com/lightningnetwork/lnd/releases/tag/v0.15.4-beta
- https://github.com/lightningnetwork/lnd/security/advisories/GHSA-hc82-w9v8-83pr
References
- https://github.com/lightningnetwork/lnd/issues/7096
- https://github.com/lightningnetwork/lnd/pull/7098
- https://github.com/lightningnetwork/lnd/releases/tag/v0.15.4-beta
- https://github.com/lightningnetwork/lnd/security/advisories/GHSA-hc82-w9v8-83pr
- https://github.com/lightningnetwork/lnd/issues/7096
- https://github.com/lightningnetwork/lnd/pull/7098
- https://github.com/lightningnetwork/lnd/releases/tag/v0.15.4-beta
- https://github.com/lightningnetwork/lnd/security/advisories/GHSA-hc82-w9v8-83pr