CVE-2024-38359 Lightning Network Daemon Onion Bomb
Attackers can cause denial of service in Lightning Network Daemon nodes via excessive memory allocation during onion processing.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-38359?
CVE-2024-38359 is a medium-severity denial of service vulnerability in lightningnetwork lnd, published on 20 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.
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.
Weakness: CWE-20
Which versions are affected by CVE-2024-38359?
3 open source packages ship an affected version, including github.com/lightningnetwork/lnd.
| Package | Affected | Fixed in |
|---|---|---|
github.com/lightningnetwork/lnd Go | All versions | 0.17.0-beta |
github.com/lightningnetwork/lnd Go | All versions | 0.17.0-beta |
github.com/lightningnetwork/lnd Go | All versions | 0.17.0-beta |
How do I fix CVE-2024-38359?
Upgrade github.com/lightningnetwork/lnd to 0.17.0-beta or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-38359 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38359 exists.
Sources
Also known as GHSA-9gxx-58q6-42p7, GO-2024-2943.