Common Weakness Enumeration

    CWE Definition / CWE-23

    CWE-23: Relative Path Traversal

    The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as .. 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

    CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

    CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')