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

wallet: Disallow . and .. from wallet names

Public commit record

What the developer wrote

Authored by Ava Chow

68/100 · Adequate
wallet: Disallow . and .. from wallet names

Wallet names that are also paths that contain . and .. are unintuitive
and can result in unexpected behavior, particularly in migration.
Therefore we should disallow users from specifying wallet names that
contain . and .. as path elements.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit tightens the rules for what can be used as a Bitcoin Core wallet name. Previously, a wallet name could contain relative path tricks such as "." (current directory), ".." (parent directory), or start with "./" or "../". Such names could make the wallet software create, read, or overwrite files in unexpected places, especially during the wallet migration process. The change rejects these names outright and adds tests to make sure they are blocked. It is a hardening fix rather than a fix for a known active exploit.

Recommended action

Treat as a security hardening improvement. Review whether any production deployments or tooling rely on wallet names containing ".", "..", leading "./" or "../", or root paths, because those names will now be rejected. No immediate emergency response is indicated, but the change should be included in release notes so operators are aware of the new restriction.

Security signals we found

01

Path traversal / directory traversal hardening

02

Input validation added to filesystem path construction

03

Removal of test cases that exercised relative-path wallet behavior

04

New negative tests for non-normalized, relative, and root wallet names

Risk score

Why this scored 44/100

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