AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 52 Bitcoin

gossipd: don't accept malformed channel_announcements with mis-ordered node-ids.

Public commit record

What the developer wrote

Authored by Rusty Russell

81/100 · Strong
gossipd: don't accept malformed channel_announcements with mis-ordered node-ids.

See https://github.com/lightning/bolts/pull/1333

Every reader of the gossip_store gets upset, and we get many errors if this happens :(

Reported-by: https://github.com/NishantBansal2003
Changelog-Fixed: Protocol: We correctly reject invalidly ordered channel_announcement messages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This update fixes a bug in Core Lightning's gossip daemon, which handles network routing announcements. The daemon was accepting malformed channel announcements where the two node IDs were in the wrong order. Such messages are invalid per the Lightning protocol and can cause errors for any node that later reads them from its stored gossip data. The fix makes the node reject these invalid announcements, preventing downstream error cascades.

Recommended action

Apply the patch and consider rebuilding or pruning gossip_store entries that may already contain malformed channel_announcements, since existing bad records can still trigger errors on read even after the fix.

Security signals we found

01

Malformed protocol message accepted as valid

02

Spec-violating input propagated to persistent store

03

Downstream error cascade on gossip_store read

04

Denial-of-service-like symptom via gossip store corruption

05

BOLT specification compliance fix

Risk score

Why this scored 52/100

Our methodology →
Potential impact 12/30
Exploitability 10/25
Stealth signal 8/15
Affected reach 10/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.