CVE-2024-34694: LNbits improperly handles potential network and payment failures when using Eclair backend
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.20423%
CWE
Published
6/17/2024
Updated
6/17/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| lnbits | pip | < 0.12.6 | 0.12.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from three key elements in eclair.py's payment handling: 1) The use of blocking requests with a 30s timeout (line 138), 2) Immediate error assumption via raise_for_status() (line 141), and 3) Payment failure determination based solely on initial response status (lines 144, 146). Together these create an improper exceptional condition check (CWE-754) by not verifying actual payment state after timeout. The function's error handling flow makes it vulnerable to the described race condition attack.