CWE · MITRE source
CWE-31Path 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' (multiple internal backslash dot dot) sequences that can resolve to a location that is outside of that directory.
This allows attackers to traverse the file system to access files or directories that are outside of the restricted directory. The 'dir\..\..\filename' manipulation is useful for bypassing some path traversal protection schemes. Sometimes a program only removes one "..\" sequence, so multiple "..\" can bypass that check. Alternately, this manipulation could be used to bypass a check for "..\" at the beginning of the pathname, moving up more than one directory level.
Last updated: 09 May 2026 03:25 UTC
NIST 800-53 r5 controls that address this weakness (0)AI
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2024-2044 | 7.0 | 9.9 | 0.8347 | 2024-03-07 |
CVE-2024-36857 | 4.7 | 7.5 | 0.5344 | 2024-06-04 |
CVE-2024-28088 | 2.4 | 8.1 | 0.1343 | 2024-03-04 |
CVE-2024-24998 | 2.1 | 8.8 | 0.0489 | 2024-04-19 |
CVE-2024-41376 | 1.9 | 8.8 | 0.0287 | 2024-08-05 |
CVE-2024-35431 | 1.7 | 7.5 | 0.0297 | 2024-05-30 |
CVE-2024-25840 | 1.5 | 7.5 | 0.0044 | 2024-02-27 |
CVE-2019-6268 | 1.5 | 7.5 | 0.0063 | 2024-03-08 |
CVE-2024-35429 | 1.3 | 6.5 | 0.0045 | 2024-05-30 |
CVE-2023-35860 | 1.2 | 5.3 | 0.0261 | 2024-06-13 |
CVE-2024-22723 | 1.0 | 4.9 | 0.0022 | 2024-02-28 |