CWE-46: Path Equivalence: 'filename ' (Trailing Space)
Filter
The product accepts path input in the form of trailing 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.
What the weakness is: CWE-46 at MITRE. All weaknesses
Related attack patterns (CAPEC): 1
- CAPEC-649 Adding a Space to a File Extension Likelihood: Low · Severity: Medium
The attack patterns MITRE's CAPEC relates to CWE-46, as MITRE names them. Credits.
Ask an AI about CWE-46
Show the prompt
Explain CWE-46: Path Equivalence: 'filename ' (Trailing Space) and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/46.html and https://cve.bz/cve/cwe/46?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
- 9.8CVE-2026-8801EPSS 0.5%
Path equivalence: vulnerability in Progress MOVEit Transfer (File Upload modules). This issue affects MOVEit Transfer: before 2025.0.8, from 2025.1.0 before 2025.1.4.