CWE-47

Path Equivalence: ' filename' (Leading Space)
AI Translation Available

The product accepts path input in the form of leading space (' filedir') without appropriate validation, which can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files.

Status
incomplete
Abstraction
variant

Common Consequences

confidentiality integrity
Impacts
read files or directories modify files or directories

Potential Mitigations

Functional Areas

file processing