Back to CWE Database

CWE-42

Path Equivalence: 'filename.' (Trailing Dot)

Weakness Description

The product accepts path input in the form of trailing dot ('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.

Common Consequences

Access Control
Bypass Protection Mechanism

Related Weaknesses