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

Merge pull request #2600 from allocz/fix_issue_2597

Public commit record

What the developer wrote

Authored by Olaoluwa Osuntokun

73/100 · Adequate
Merge pull request #2600 from allocz/fix_issue_2597

btcd: fix getblock panic triggered by rpc call
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This patch fixes a server crash in btcd's JSON-RPC 'getblock' command. When a caller did not provide an optional 'verbosity' parameter, the code later dereferenced a nil pointer, causing the entire btcd process to panic. The fix supplies a default verbosity value of 1 when the parameter is missing, preventing the crash.

Recommended action

Upgrade to a btcd version containing this commit. If upgrading is not immediately possible, restrict RPC access to trusted clients and monitor for unexpected btcd restarts. No other workaround is required.

Security signals we found

01

nil-pointer dereference panic in RPC handler

02

denial-of-service via crafted JSON-RPC request

03

server process crash (availability impact)

04

fix defaults optional parameter before use

Risk score

Why this scored 65/100

Our methodology →
Potential impact 18/30
Exploitability 15/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.