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

Validate output index (if given) in psbt_parse_rawtx

Public commit record

What the developer wrote

Authored by Salvatore Ingala

50/100 · Thin
Validate output index (if given) in psbt_parse_rawtx
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a safety check in the Ledger Bitcoin app's code that parses raw transactions from PSBT data. Before finalizing, it now verifies that if the caller asked for a specific transaction output by index, that output actually exists. Without this check, the code could have proceeded using data from a non-existent or uninitialized output, potentially leading to incorrect transaction details being shown or signed.

Recommended action

Treat as a security-relevant hardening fix. Review whether the missing check was exploitable to induce signing of unexpected transaction data, and assess if any related PSBT parsing paths have similar index-validation gaps. No immediate incident response is indicated by the diff alone, but the fix should be included in release notes and ideally tested with malformed PSBTs.

Security signals we found

01

Missing bounds check on attacker-influenced index

02

Out-of-range array/index access in transaction parsing

03

PSBT input parsing path reachable during transaction signing

04

Potential use of uninitialized or incorrect output data in security-critical flow

Risk score

Why this scored 58/100

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