← All vulnerabilities

Path Traversal

High · File Access

OWASP Top 10:2025 (current)

Not directly mapped to a Top 10:2025 category — see CWE / CVE below.

CWE

CWE-22

CVE / class examples

  • Search NVD/CVE for product-specific instances of this CWE

All refs

CWE-22

Definition

../ sequences access files outside intended directory.

Root cause

Using user input in file paths.

Affected components

  • Components in the “File Access” class
  • Application / API handlers
  • Supporting libraries

Impact

Reading sensitive files.

Severity

High

Safe lab reproduction

PortSwigger path traversal labs

Detection methodology

Logs containing ../ or encoded variants.

Evidence examples

  • Lab reproduction notes: PortSwigger path traversal labs
  • Request/response excerpts (redacted)
  • Detection signal: Logs containing

Remediation

Canonicalize paths and enforce a base directory.

Secure coding examples

Map IDs to files instead of accepting filenames.

Related CYNARKS lessons & labs

Tools: burp · ffuf

Practise related skills in Labs or deepen on Academy library.