CWE · MITRE source
CWE-27Path 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 multiple internal "../" 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 'directory/../../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-23897 KEV | 9.6 | 9.8 | 0.9447 | 2024-01-24 |
CVE-2024-24809 | 7.1 | 8.5 | 0.9015 | 2024-04-10 |
CVE-2023-50254 | 2.4 | 9.3 | 0.0885 | 2023-12-22 |
CVE-2023-52076 | 2.4 | 8.5 | 0.1176 | 2024-01-25 |
CVE-2024-21896 | 2.1 | 9.8 | 0.0164 | 2024-02-20 |
CVE-2023-34125 | 2.0 | 6.5 | 0.1153 | 2023-07-13 |
CVE-2024-27764 | 2.0 | 9.8 | 0.0108 | 2024-03-05 |
CVE-2024-51747 | 1.9 | 9.1 | 0.0145 | 2024-11-11 |
CVE-2025-66518 | 1.8 | 8.8 | 0.0004 | 2026-01-05 |
CVE-2026-24457 | 1.8 | 9.1 | 0.0028 | 2026-03-05 |
CVE-2025-58761 | 1.7 | 8.6 | 0.0013 | 2025-09-09 |
CVE-2025-10438 | 1.7 | 8.6 | 0.0005 | 2025-09-25 |
CVE-2022-24785 | 1.6 | 7.5 | 0.0226 | 2022-04-04 |
CVE-2023-27588 | 1.6 | 7.5 | 0.0129 | 2023-03-14 |
CVE-2021-35027 | 1.5 | 7.5 | 0.0044 | 2021-09-29 |
CVE-2024-20348 | 1.5 | 7.5 | 0.0049 | 2024-04-03 |
CVE-2023-20090 | 1.4 | 6.7 | 0.0023 | 2024-11-15 |
CVE-2023-20127 | 1.3 | 6.5 | 0.0052 | 2023-04-05 |
CVE-2023-20129 | 1.3 | 6.5 | 0.0052 | 2023-04-05 |
CVE-2023-20130 | 1.3 | 6.5 | 0.0018 | 2023-04-05 |
CVE-2023-20131 | 1.3 | 6.5 | 0.0033 | 2023-04-05 |
CVE-2025-52237 | 1.3 | 6.5 | 0.0015 | 2025-08-05 |
CVE-2026-20018 | 1.2 | 5.9 | 0.0005 | 2026-03-04 |
CVE-2024-7458 | 1.1 | 5.5 | 0.0051 | 2024-08-04 |
CVE-2024-25828 | 1.0 | 4.9 | 0.0016 | 2024-02-22 |