Description
Electrum before 4.7.2 contains a spending limit bypass vulnerability in the Nostr Wallet Connect plugin that allows malicious NWC clients to exceed daily_limit_sat by exploiting non-atomic budget checks and millisatoshi truncation. Attackers can send concurrent pay_invoice requests that pass budget_allows_spend() before add_to_budget() runs, or repeatedly pay msat amounts that are floored to whole satoshis, to drain funds beyond the limit.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| spesmilo | electrum | < 4.7.2 | 4.7.2 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | electrum | 4.8.1+dfsg-1 | — |
References
- GitHub Security Advisory (GHSA-q7m2-785w-r585) vendor-advisory
- Patch Commit patch
- Patch Commit patch
- VulnCheck Advisory: Electrum before 4.7.2 Nostr Wallet Connect Plugin Daily Spending Limit Bypass third-party-advisory