Common Weakness Enumeration

    CWE Definition / CWE-46

    CWE-46: Path Equivalence: 'filename ' (Trailing Space)

    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.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-41: Improper Resolution of Path Equivalence

    CWE-162: Improper Neutralization of Trailing Special Elements

    CWE-289: Authentication Bypass by Alternate Name