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

psbt: reject PSBTv2 input and output fields in PSBTv0

Public commit record

What the developer wrote

Authored by Sjors Provoost

65/100 · Adequate
psbt: reject PSBTv2 input and output fields in PSBTv0

The global PSBTv2 fields were already rejected.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit fixes a parsing bug in the way the Hardware Wallet Interface (HWI) reads Bitcoin transaction files called PSBTs. PSBTs come in two versions, v0 and v2, and each version has its own allowed fields. The code was accidentally accepting some v2-only fields inside a v0 PSBT. That could let a specially crafted file change how the transaction is interpreted, potentially tricking a hardware wallet into signing something different from what the user sees. The fix makes the parser reject those v2 fields when the file says it is a v0 PSBT.

Recommended action

Review whether any downstream signing logic could have been influenced by v2 fields in a v0 PSBT before this patch; update to the patched version; ensure the new test vectors pass. Consider whether a CVE or advisory is warranted if this could lead to loss of funds.

Security signals we found

01

PSBT version confusion: v2-only fields accepted in v0 PSBT

02

Potential transaction malleability / unintended signature scope

03

Parsing strictness fix with new negative test vectors

04

No vendor security advisory or CVE referenced in commit

Risk score

Why this scored 63/100

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