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

Fix attribution decryption on long routes (#3448)

Public commit record

What the developer wrote

Authored by pm47

76/100 · Adequate
Fix attribution decryption on long routes (#3448)

Attribution data only supports routes of at most 20 nodes, but routes
can be longer when using blinded paths (we don't limit the number of
blinded hops). When decrypting attribution data for such routes,
`Attribution.decrypt` was called with more than 20 remaining hops, and
`computeHmacs` threw an `IndexOutOfBoundsException`.

We now ignore attribution data for nodes that are too far from the end
of the route, and make `Attribution.decrypt` never throw: attribution
data is untrusted and only used for best-effort reporting, so any
unexpected error is treated like invalid attribution data.

Reported-by: @tcp-raw
Issue: blinded-path-hops-attribution-crash
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
✓ 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 commit fixes a crash bug in Eclair, a Bitcoin Lightning Network node implementation. When processing certain encrypted payment messages (onion packets) that travel through unusually long routes—especially those using 'blinded paths'—the software could throw an IndexOutOfBoundsException and fail to handle the message. The fix makes the code safely ignore attribution data in those cases instead of crashing. Attribution data is best-effort diagnostic information, not payment-critical data, so ignoring it does not risk funds.

Recommended action

Upgrade to the release containing this commit. Nodes should not accept or process untrusted attribution data from peers without the bounds/Try hardening. Operators running versions prior to this fix should monitor logs for crashes during onion packet processing and apply the patch promptly, as the crash is remotely triggerable via long routes/blinded paths.

Security signals we found

01

Denial-of-service vector: unhandled IndexOutOfBoundsException during onion packet processing on long/blinded routes

02

Input from untrusted peers (attribution data) was not fully sanitized before array indexing

03

Fix converts all attribution-decryption failures into safe None results, consistent with best-effort reporting semantics

04

No evidence of funds loss or cryptographic key compromise in the diff

Risk score

Why this scored 47/100

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