Path Equivalence: 'filename.' (Trailing Dot)
CWE-42
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.
We track 1 vulnerability of this type. 100% are rated high or critical, and the average CVSS score is 7.8.
Latest Path Equivalence: 'filename.' (Trailing Dot) vulnerabilities
- 7.8 High severity
notepad-plus-plus: Path Equivalence: 'filename.' (Trailing Dot)
Notepad++ is a free and open-source source code editor. In v8.9.6.1, isInTrustedDirectory() does NOT canonicalize the path before checking. It uses a prefix-based check (PathIsPrefix() or equivalent) that matches paths starting with trusted directory strings.