Skip to content

Witness Block Parsing DoS Vulnerability

High severity GitHub Reviewed Published Nov 17, 2022 in lightningnetwork/lnd • Updated Jan 29, 2023

Package

gomod github.com/lightningnetwork/lnd (Go)

Affected versions

< 0.15.4-beta

Patched versions

0.15.4-beta

Description

Impact

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.

Patches

A patch is available starting with lnd v0.15.4.

Workarounds

Nodes can 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

lightningnetwork/lnd#7096

https://github.com/lightningnetwork/lnd/releases/tag/v0.15.4-beta

References

@Roasbeef Roasbeef published to lightningnetwork/lnd Nov 17, 2022
Published by the National Vulnerability Database Nov 17, 2022
Published to the GitHub Advisory Database Nov 18, 2022
Reviewed Nov 18, 2022
Last updated Jan 29, 2023

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

EPSS score

0.095%
(41st percentile)

Weaknesses

CVE ID

CVE-2022-39389

GHSA ID

GHSA-hc82-w9v8-83pr

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.