Cyber Resilience

CWE · MITRE source

CWE-27Path Traversal: 'dir/../../filename'

Abstraction: Variant · CVEs in our corpus: 29

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: 22 August 2026 14:14 UTC

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.PS-06
  • ID.RA-01
  • PR.AA-05
  • SI-10 Information Input Validation
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

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-23897 KEV 9.99.81.00002024-01-24
CVE-2024-24809 8.38.50.54412024-04-10
CVE-2024-21896 7.59.80.01262024-02-20
CVE-2024-27764 7.59.80.00972024-03-05
CVE-2023-50254 7.09.30.02122023-12-22
CVE-2026-24457 6.99.10.00622026-03-05
CVE-2025-66518 6.78.80.00912026-01-05
CVE-2022-24785 6.57.50.05522022-04-04
CVE-2023-34125 6.56.50.25372023-07-13
CVE-2024-51747 6.59.10.00842024-11-11
CVE-2025-58761 6.38.60.00682025-09-09
CVE-2021-35027 6.27.50.02042021-09-29
CVE-2023-52076 6.28.50.01022024-01-25
CVE-2025-10438 6.28.60.00422025-09-25
CVE-2023-27588 6.17.50.01302023-03-14
CVE-2026-62391 6.18.10.00522026-07-31
CVE-2024-20348 6.07.50.00802024-04-03
CVE-2026-763445.67.70.00302026-08-19
CVE-2023-20127 5.36.50.00922023-04-05
CVE-2023-20129 5.36.50.00922023-04-05
CVE-2023-20131 5.26.50.00572023-04-05
CVE-2025-52237 5.26.50.00472025-08-05
CVE-2023-20130 5.16.50.00382023-04-05
CVE-2023-20090 5.06.70.00212024-11-15
CVE-2024-74584.65.50.00842024-08-04