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

rpc: reject null for optional parameters

Public commit record

What the developer wrote

Authored by Ruslan Kasheparov

45/100 · Thin
rpc: reject null for optional parameters
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This Bitcoin Core change tightens how three RPC commands—deriveaddresses, scanblocks, and scantxoutset—handle the JSON value null when it is passed for an optional parameter. Previously, passing null could be treated the same as not passing the argument at all, which in some cases caused the command to proceed with missing required data and either crash or behave unexpectedly. The patch makes the RPC framework explicitly reject null for these parameters, returning a clear error instead. It is a defensive hardening fix rather than a fix for an active exploit.

Recommended action

Treat as a low-severity hardening patch. Review whether other RPCs using MaybeArg or size-based optional-parameter checks have similar null-handling gaps. No urgent deployment action is indicated, but include in normal release testing.

Security signals we found

01

Null-value handling in RPC parameter parsing

02

Potential null-pointer / invalid-array-access in scanblocks and scantxoutset

03

Incorrect error path for ranged descriptors in deriveaddresses when null range supplied

04

Addition of negative functional tests for null parameter rejection

Risk score

Why this scored 29/100

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