{"id":"CVE-2024-34694","aliases":["CVE-2024-34694","GHSA-3j4h-h3fp-vwww","PYSEC-2026-1580"],"related":[],"kind":"vulnerability","state":"published","title":"LNbits improperly handles potential network and payment failures when using Eclair backend","summary":"LNbits is a Lightning wallet and accounts system. Paying invoices in Eclair that do not get settled within the internal timeout (about 30s) lead to a payment being considered failed, even though it may still be in flight. This vulnerability can lead to a total loss of funds for the node backend. This vulnerability is fixed in 0.12.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"LNbits is a Lightning wallet and accounts system. Paying invoices in Eclair that do not get settled within the internal timeout (about 30s) lead to a payment being considered failed, even though it may still be in flight. This vulnerability can lead to a total loss of funds for the node backend. This vulnerability is fixed in 0.12.6.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nPaying invoices in Eclair that do not get settled within the internal timeout (about 30s) lead to a payment being considered failed, even though it may still be in flight.\n\n### Details\n\nUsing `blocking: true` on the API call will lead to a timeout error if a payment does not get settled in the 30s timeout with the error: `Ask timed out on [Actor[akka://eclair-node/user/$l#134241942]] after [30000 ms]. Message of type [fr.acinq.eclair.payment.send.PaymentInitiator$SendPaymentToNode]. A typical reason for AskTimeoutException is that the recipient actor didn't send a reply.`\nhttps://github.com/lnbits/lnbits/blob/c04c13b2f8cfbb625571a07dfddeb65ea6df8dac/lnbits/wallets/eclair.py#L138\n\nThis is considered a payment failure by parts of the code, and assumes the payment is not going to be settled after:\nhttps://github.com/lnbits/lnbits/blob/c04c13b2f8cfbb625571a07dfddeb65ea6df8dac/lnbits/wallets/eclair.py#L144\nhttps://github.com/lnbits/lnbits/blob/c04c13b2f8cfbb625571a07dfddeb65ea6df8dac/lnbits/wallets/eclair.py#L141\nhttps://github.com/lnbits/lnbits/blob/c04c13b2f8cfbb625571a07dfddeb65ea6df8dac/lnbits/wallets/eclair.py#L146\n\nThe best way to fix this is to check the payment status after an error, and when not sure, always consider a payment still in flight.\n\n### PoC\n\nA very simple way to exploit this is:\n- Create a hold invoice\n- Pay the invoice with the LNbits server backed by an Eclair node, until it times out\n- Settle the hold invoice\n\n### Impact\n\nThis vulnerability can lead to a total loss of funds for the node backend.","format":"markdown","source":"ghsa"},{"lang":"es","text":"LNbits es un sistema de cuentas y billetera Lightning. Pagar facturas en Eclair que no se liquidan dentro del tiempo de espera interno (alrededor de 30 segundos) hace que el pago se considere fallido, aunque todavía pueda estar en proceso. Esta vulnerabilidad puede provocar una pérdida total de fondos para el backend del nodo. Esta vulnerabilidad se solucionó en 0.12.6.","source":"nvd"}],"published":"2024-06-14T14:31:12.465Z","modified":"2026-07-07T17:56:50.535Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-754"],"affected":[{"ranges":[{"version":"< 0.12.6","status":"affected"}],"vendor":"lnbits","product":"lnbits","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.12.6","status":"affected"}],"vendor":"lnbits","product":"lnbits","cpe":"cpe:2.3:a:lnbits:lnbits:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.12.6"}],"ecosystem":"PyPI","package":"lnbits","purl":"pkg:pypi/lnbits","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.12.6"}],"ecosystem":"PyPI","package":"lnbits","purl":"pkg:pypi/lnbits","source":"pysec"}],"references":[{"url":"https://github.com/lnbits/lnbits/security/advisories/GHSA-3j4h-h3fp-vwww","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34694","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/lnbits/lnbits","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/lnbits","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-3j4h-h3fp-vwww","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-07-15T20:13:48.624Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-34694","url":"https://www.cve.org/CVERecord?id=CVE-2024-34694","licence":"CVE Terms of Use","modified":"2024-08-02T02:59:21.774Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3j4h-h3fp-vwww","url":"https://github.com/advisories/GHSA-3j4h-h3fp-vwww","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:50.535Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-34694","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34694","licence":"Public domain","modified":"2026-06-17T07:33:53.567Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1580","url":"https://osv.dev/vulnerability/PYSEC-2026-1580","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:55.139Z"}],"updatedAt":"2026-11-25T22:58:41.909Z","epss":{"score":0.00602,"percentile":0.50164,"date":"2026-12-01T12:00:22.000Z"}}