Vulnerability · Published Jun 20, 2024 · Assigned by GitHub_M
CVE-2024-38359Lightning Network Daemon Onion Bomb
Medium 6.5
In plain English
A medium-severity improper input validation in lnd from lightningnetwork. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/lightningnetwork/lnd | 0.17.0-beta | GHSA-9gxx-58q6-42p7 |
| Go | github.com/lightningnetwork/lnd | 0.17.0-beta | GO-2024-2943 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| lightningnetwork | lnd | < 0.17.0 |
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/lightningnetwork/lnd/security/advisories/GHSA-9gxx-58q6-42p7 x_refsource_CONFIRM
- https://delvingbitcoin.org/t/dos-disclosure-lnd-onion-bomb/979 x_refsource_MISC
- https://github.com/lightningnetwork/lnd/releases/tag/v0.17.0-beta x_refsource_MISC
- https://lightning.network x_refsource_MISC
- https://morehouse.github.io/lightning/lnd-onion-bomb x_refsource_MISC