Common Weakness Enumeration

    CWE Definition / CWE-26

    CWE-26: Path Traversal: '/dir/../filename'

    The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize /dir/../filename sequences that can resolve to a location that is outside of that directory.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:30 Apr 2026

    Related Weakness

    CWE-23: Relative Path Traversal