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

BOLT12: don't allow zero-amount offers.

Public commit record

What the developer wrote

Authored by Rusty Russell

68/100 · Adequate
BOLT12: don't allow zero-amount offers.

And enhance some of our quotes to use `...` at the start to link them.
As they were, we didn't notice when a new requirement appeared in the
middle.

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

What changed, and why it matters

This commit tightens validation of BOLT12 payment offers by rejecting any offer whose amount is set to zero. Previously, Core Lightning accepted zero-amount offers, which could let a malicious or misconfigured party create an offer that looks valid but requests no payment. The change also updates the embedded BOLT specification reference and adds tests so the new rule is enforced consistently across normal decoding and the developer command-line tool.

Recommended action

Treat this as a minor security hardening patch. Ensure nodes are upgraded so they reject zero-amount offers consistently, and verify that any downstream BOLT12 parsing does not independently accept zero amounts.

Security signals we found

01

Input validation hardening for BOLT12 offer decoding

02

Rejection of zero-amount offers per updated BOLT #12 requirement

03

Test coverage added for zero amount cases

04

BOLT reference version bumped to newer commit

Risk score

Why this scored 37/100

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