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

clnrest: restrict maximum size of request bodies to 2MiB

Public commit record

What the developer wrote

Authored by daywalker90

73/100 · Adequate
clnrest: restrict maximum size of request bodies to 2MiB

Changelog-Fixed: clnrest: an unauthenticated user could crash the node with a large request body; bodies are now capped at 2MiB.
(cherry picked from commit d5c2f6dbf1b7a54679b97d2a71015ad45443baf8)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This update fixes a bug in Core Lightning's built-in REST plugin (clnrest). Before the fix, anyone on the network could send a very large request to the REST API without logging in, causing the node to crash. The patch now refuses bodies larger than 2 MB and returns an error instead of trying to read unlimited data.

Recommended action

Upgrade to a release containing this commit. If running clnrest exposed to untrusted networks, treat this as a priority denial-of-service fix. Verify no other handlers read bodies with usize::MAX.

Security signals we found

01

Unauthenticated remote crash via oversized request body

02

Unbounded memory consumption in HTTP body handling

03

Changelog explicitly states security fix: 'an unauthenticated user could crash the node with a large request body'

04

Memory-exhaustion / denial-of-service vector

Risk score

Why this scored 74/100

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