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

rpc: Fix descriptorprocesspsbt internal bug on invalid signatures

Public commit record

What the developer wrote

Authored by b-l-u-e

73/100 · Adequate
rpc: Fix descriptorprocesspsbt internal bug on invalid signatures

Use PSBTInputSignedAndVerified instead of PSBTInputSigned to properly
validate signatures before marking PSBT as complete

Signed-off-by: b-l-u-e <8102260+blue@users.noreply.github.com>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in Bitcoin Core's descriptorprocesspsbt RPC command. Previously, the command could mark a partially-signed Bitcoin transaction (PSBT) as 'complete' and return a finalized transaction hex even when one of the signatures was actually invalid. The fix makes the command verify signatures cryptographically, not just check that signature data is present. The new test deliberately corrupts a signature and confirms the command now correctly reports the PSBT as incomplete.

Recommended action

Treat this as a correctness/security fix and backport to maintained branches. Wallets or services that rely on descriptorprocesspsbt's 'complete' flag or returned hex should upgrade, because prior versions could produce an unbroadcastable or invalid final transaction. Review other RPCs or code paths that use PSBTInputSigned instead of PSBTInputSignedAndVerified for similar gaps.

Security signals we found

01

Logic bug allowing invalid signatures to be treated as valid

02

Missing cryptographic verification before finalization

03

PSBT completeness check bypass

04

Regression test added for malicious/corrupted signature

05

RPC output could mislead callers into broadcasting an invalid transaction

Risk score

Why this scored 62/100

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