Cyber Resilience

CWE · MITRE source

CWE-31Path Traversal: 'dir\..\..\filename'

Abstraction: Variant · CVEs in our corpus: 11

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.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.PS-06
  • AC-3 Access Enforcement
  • AC-4 Information Flow Enforcement
  • 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-2044 9.59.90.79332024-03-07
CVE-2024-24998 7.18.80.03242024-04-19
CVE-2024-41376 6.78.80.00962024-08-05
CVE-2024-28088 6.48.10.01742024-03-04
CVE-2024-36857 6.27.50.02052024-06-04
CVE-2019-6268 6.07.50.00832024-03-08
CVE-2024-35431 6.07.50.01002024-05-30
CVE-2024-25840 5.97.50.00582024-02-27
CVE-2024-35429 5.36.50.00952024-05-30
CVE-2023-35860 4.65.30.00802024-06-13
CVE-2024-22723 4.24.90.00882024-02-28