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

lightningd: don't process more than 100 commands from a JSONRPC at once.

Public commit record

What the developer wrote

Authored by Rusty Russell

73/100 · Adequate
lightningd: don't process more than 100 commands from a JSONRPC at once.

Now that ccan/io rotates through callbacks, we can call io_always() to yield.

Though it doesn't fire on our benchmark, it's a good thing to do.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This change tweaks how Core Lightning handles incoming JSON-RPC commands so it never processes more than 100 commands or 250 milliseconds in one go without taking a break to let other connections and tasks run. The goal is to prevent a single busy connection from starving the rest of the node. The commit itself frames it as a hardening improvement rather than a fix for a known active bug or vulnerability.

Recommended action

Treat as a routine hardening patch. Review whether local RPC access controls and authentication already limit exposure, since the issue only matters if untrusted or compromised clients can send many RPC commands. No urgent security response is indicated by the commit itself.

Security signals we found

01

Resource exhaustion / fairness hardening: limits per-connection JSON-RPC command processing before yielding to the event loop

02

Potential denial-of-service vector: a single RPC client could previously monopolize daemon CPU/I/O time with many pipelined requests

03

No explicit bug, CVE, or exploit mentioned in commit or supplied references

Risk score

Why this scored 37/100

Our methodology →
Potential impact 8/30
Exploitability 7/25
Stealth signal 6/15
Affected reach 8/15
Confidence 5/10
Evidence quality 3/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.