Disclosure: DoS vulnerabilities fixed in Eclair v0.14.0

Archived from the original topic ↗

Two denial-of-service vulnerabilities were fixed in Eclair v0.14.0. Users should upgrade to v0.14.0 or later to protect their nodes.

LNF-2026-0001: Feature bit parsing DoS

Eclair v0.13.1 and earlier parsed feature vectors one bit at a time, allocating several heap objects for every bit. A single maximum-length init message caused about 300 MB of heap churn and occupied a parsing thread for up to 300 ms. By flooding the victim with such messages, an attacker could disconnect all the victim’s peers within a minute and run it out of memory within five.

smite found this vulnerability with its most primitive scenario, which sends raw bytes as a single message and then checks that the target still answers a ping promptly. One input, which happened to be an init with a large feature vector, made Eclair take too long to respond.

More details in the lnfuzz advisory.

LNF-2026-0002: zlib decompression DoS

Eclair v0.13.1 and earlier still accepted zlib-encoded channel queries, four years after BOLT 7 retired the encoding. Decompression had no output limit, so a 64 KB query_short_channel_ids message inflated to 64 MB and decoded into about 17 million heap objects. A flood of these messages took the victim offline within seconds and ran it out of memory within minutes.

smite did not find this one directly. After LNF-2026-0001, I ran LLM-assisted variant analysis over the Eclair codebase, looking for other places where a peer could impose far more work on the node than it spends itself. The analysis flagged the zlib codec, and experiments confirmed the DoS.

More details in the lnfuzz advisory.

24 Sepcreated
21dlast reply
1replies
2users

The shared failure mode is attacker-controlled work and allocation without a comparable bound on input size. A useful regression test would assert both a hard decompressed-output limit and a latency or allocation budget for maximum-length feature vectors, so future parser changes don’t reintroduce the same asymmetry.