Common Weakness Enumeration

    CWE Definition / CWE-49

    CWE-49: Path Equivalence: 'filename/' (Trailing Slash)

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