1. CVE archive
  2. Vulnerability types
  3. CWE-57
CWE-57 · #654 most frequent type in the archive

Path Equivalence: 'fakedir/../realdir/filename'

The product contains protection mechanisms to restrict access to 'realdir/filename', but it constructs pathnames using external input in the form of 'fakedir/../realdir/filename' that are not handled by those mechanisms. This allows attackers to perform unauthorized actions against the targeted file.

Part of: CWE-41 · Improper Resolution of Path Equivalence

2CVEs of this type in the archive
0critical (CVSS ≥ 9)
0high severity (7–8.9)
Nov 26, 2026latest published

What it is

The product contains protection mechanisms to restrict access to 'realdir/filename', but it constructs pathnames using external input in the form of 'fakedir/../realdir/filename' that are not handled by those mechanisms. This allows attackers to perform unauthorized actions against the targeted file.

Impact on systems

ScopeImpact
Confidentiality, Integrity Read Files or Directories, Modify Files or Directories

How to prevent it

Implementation · Input Validation Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-57 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20241
20261

All CWE-57 CVEs

2 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.