Cyber Resilience

CWE · MITRE source

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

Abstraction: Variant · CVEs in our corpus: 18

The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "/dir/../filename" 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 checks for "../" at the beginning of the input, so a "/../" can bypass that check.

Last updated: 21 August 2026 14:15 UTC

Control responseHuman-reviewed

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

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • ID.RA-01
  • PR.PS-06
  • PR.PS-01
  • 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-28064 7.59.80.00862024-05-18
CVE-2023-50255 6.89.30.01052023-12-27
CVE-2024-29466 6.88.80.01052024-04-30
CVE-2021-34762 6.58.10.01972021-10-27
CVE-2026-763176.58.80.00382026-08-19
CVE-2021-42021 6.27.50.01692021-11-09
CVE-2023-25802 6.07.50.01012023-03-13
CVE-2024-25466 5.97.80.00532024-02-16
CVE-2024-31551 5.97.50.00692024-04-26
CVE-2026-255755.87.50.00442026-02-04
CVE-2024-5865 5.77.70.00482024-07-02
CVE-2024-20345 5.56.50.02152024-03-06
CVE-2022-45133 5.16.50.00342025-08-22
CVE-2024-5866 4.05.00.00382024-07-02
CVE-2026-46747 3.64.30.00242026-06-09