Your RSA-2048 keys break in 2030. Find every one of them before attackers do.

Path Traversal vulnerabilities

CWE-22 · 12 tracked

Path traversal (CWE-22) is a flaw where untrusted input is used to build a file path without restriction, letting an attacker reach files outside the intended directory.

How it’s exploited

An attacker supplies a path like ../../etc/passwd; the app joins it to a base directory without normalization, so the traversal sequences walk up and out — exposing config files, credentials, or source code.

How to prevent it

Canonicalize and validate paths against an allowlisted base directory, reject traversal sequences after normalization, and avoid passing user input to filesystem APIs directly.

Tracked path traversal vulnerabilities

12 CVEs in this class, each with severity, exploit status, EPSS, and remediation.

Frequently asked questions

What is Path Traversal?
Path traversal (CWE-22) is a flaw where untrusted input is used to build a file path without restriction, letting an attacker reach files outside the intended directory.
How is path traversal exploited?
An attacker supplies a path like ../../etc/passwd; the app joins it to a base directory without normalization, so the traversal sequences walk up and out — exposing config files, credentials, or source code.
How do you prevent path traversal?
Canonicalize and validate paths against an allowlisted base directory, reject traversal sequences after normalization, and avoid passing user input to filesystem APIs directly.
How many path traversal vulnerabilities are there?
O3 tracks 12 vulnerabilities classified as CWE-22 (Path Traversal), each with severity, exploit status, EPSS exploitation probability, and remediation. The full list is below.