Skip to content
Insights · weakness

CWE-24: Path Traversal: '../filedir'

Sources read 2026-11-25. MITRE's own page · All weakness notes · Added to CISA's list in the last seven days

What it is

From MITRE's CWE catalogue

The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "../" sequences that can resolve to a location that is outside of that directory.

MITRE classes it as a variant-level weakness.

What it lets an attacker do

From MITRE's CWE catalogue

  • Read Files or Directories, Modify Files or Directories (affects: confidentiality, integrity)

On CISA's exploited list

From CISA's exploited list

1 of the 111 entries CISA added from 2026-08-28 to 2026-11-25 name CWE-24, against 0 of 78 in the 90 days before. Over the whole catalogue 1 entries name it. The counts are small, so read them as a rough order, not a rate.

CISA's list is not every flaw that is exploited: it holds the ones CISA has evidence of, listed on the day it added them.

How MITRE says to find it

From MITRE's CWE catalogue

  • Automated Static Analysis

What MITRE suggests

From MITRE's CWE catalogue

These are MITRE's suggestions, quoted as it gives them. They are not a complete fix and not a substitute for reading the vendor's advisory for the product you run.

  • Implementation: Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
  • Implementation: 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).

Start with one piece of work.

Give us one piece of work and read access to one system. We map it and come back with what we found, what we would build and what it would take — before any commitment. You decide using our output, not our pitch.

Talk to us