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: 20 August 2026 13:14 UTC
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
NIST 800-53 r5 controls that address this weakness (0)AI-assisted
| 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 UPD | 9.5 | 9.9 | 0.7933 | 2024-03-07 |
CVE-2024-24998 UPD | 7.1 | 8.8 | 0.0324 | 2024-04-19 |
CVE-2024-41376 UPD | 6.7 | 8.8 | 0.0096 | 2024-08-05 |
CVE-2024-28088 UPD | 6.4 | 8.1 | 0.0174 | 2024-03-04 |
CVE-2024-36857 UPD | 6.2 | 7.5 | 0.0205 | 2024-06-04 |
CVE-2019-6268 UPD | 6.0 | 7.5 | 0.0083 | 2024-03-08 |
CVE-2024-35431 UPD | 6.0 | 7.5 | 0.0100 | 2024-05-30 |
CVE-2024-25840 UPD | 5.9 | 7.5 | 0.0058 | 2024-02-27 |
CVE-2024-35429 UPD | 5.3 | 6.5 | 0.0095 | 2024-05-30 |
CVE-2023-35860 UPD | 4.6 | 5.3 | 0.0080 | 2024-06-13 |
CVE-2024-22723 UPD | 4.2 | 4.9 | 0.0088 | 2024-02-28 |