Skip to content

Weakness class · PATH

File and Path Handling

23,006 published CVEs name a weakness in this class; 168 of them are exploited in the wild.
23,006CVEs
168exploited
50CWEs
297disclosed reports

CWEs in this class50

CWEs of File and Path Handling, most CVEs first
CWEWeaknessCVEsExploitedCheck
CWE-22Path Traversal10,48585549
CWE-434Unrestricted File Upload4,34526115
CWE-59Link Following1,688221
CWE-98PHP File Inclusion1,349215
CWE-427Uncontrolled Search Path1,20130
CWE-426Untrusted Search Path65120
CWE-73External Control of File Name or Path646513
CWE-23Relative Path Traversal548616
CWE-428Unquoted Search Path or Element44900
CWE-552Files or Directories Accessible to External Parties449521
CWE-35Path Traversal: '.../...//'20115
CWE-61UNIX Symbolic Link (Symlink) Following18910
CWE-36Absolute Path Traversal146––
CWE-24Path Traversal: '../filedir'130––
CWE-377CWE-37797––
CWE-29Path Traversal: '..filename'64––
CWE-379Creation of Temporary File in Directory with Insecure Permissions62––
CWE-41Improper Resolution of Path Equivalence44––
CWE-378Creation of Temporary File With Insecure Permissions43––
CWE-27Path Traversal: 'dir/../../filename'29––
CWE-114Process Control28––
CWE-26Path Traversal: '/dir/../filename'20––
CWE-1386Insecure Operation on Windows Junction / Mount Point20––
CWE-31Path Traversal: 'dir....filename'16––
CWE-641Improper Restriction of Names for Files and Other Resources15––
CWE-25Path Traversal: '/../filedir'12––
CWE-646Reliance on File Name or Extension of Externally-Supplied File11––
CWE-64Windows Shortcut Following (.LNK)9––
CWE-65Windows Hard Link7––
CWE-67Improper Handling of Windows Device Names7––
CWE-21Pathname Traversal and Equivalence Errors6––
CWE-37Path Traversal: '/absolute/pathname/here'6––
CWE-40Path Traversal: 'UNCsharename' (Windows UNC Share)6––
CWE-62UNIX Hard Link4––
CWE-28Path Traversal: '..filedir'3––
CWE-69Improper Handling of Windows ::DATA Alternate Data Stream3––
CWE-30Path Traversal: 'dir..filename'2––
CWE-32Path Traversal: '...' (Triple Dot)2––
CWE-50Path Equivalence: '//multiple/leading/slash'2––
CWE-34Path Traversal: '....//'1––
CWE-38Path Traversal: 'absolutepathnamehere'1––
CWE-39Path Traversal: 'C:dirname'1––
CWE-42Path Equivalence: 'filename.' (Trailing Dot)1––
CWE-43Path Equivalence: 'filename....' (Multiple Trailing Dot)1––
CWE-44Path Equivalence: 'file.name' (Internal Dot)1––
CWE-46Path Equivalence: 'filename ' (Trailing Space)1––
CWE-55Path Equivalence: '/./' (Single Dot Directory)1––
CWE-57Path Equivalence: 'fakedir/../realdir/filename'1––
CWE-66Improper Handling of File Names that Identify Virtual Resources1––
CWE-553Command Shell in Externally Accessible Directory1––

Exploited and check counts are given for the class's largest CWEs; open a CWE for its CVEs.

Data as of 2026-11-14.

Updated AboutDevelopersSign in