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

16 CVEs have CWE-26 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 2.155%.

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.

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.

Child of CWE-23: Relative Path Traversal

Mitigations

Observed examples

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources