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

wire: bound witness read to remaining slab

Public commit record

What the developer wrote

Authored by Erick Cestari

83/100 · Strong
wire: bound witness read to remaining slab

Add a bounds check against the remaining slab capacity so oversized
witness items return a decode error. Add a regression test for witness
items that overflow the decode slab.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This commit fixes a bug in btcd's transaction decoding where a malformed Bitcoin transaction could claim witness data larger than the internal decode buffer. Before the fix, this could cause a panic (crash) when the code tried to copy data into a too-small buffer. The patch adds a size check so the transaction is rejected cleanly instead of crashing the node.

Recommended action

Apply the patch. Nodes running affected versions should upgrade to avoid a remote DoS via malformed witness transactions. Monitor for attempts to send crafted witness transactions with oversized item claims.

Security signals we found

01

Out-of-bounds slice access/panic in network message decoder

02

Malformed P2P transaction can trigger crash (denial of service)

03

Missing bounds check on remaining buffer capacity

04

Regression test explicitly named 'TestTxWitnessOverflowPanic'

Risk score

Why this scored 72/100

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