---
title: "CWE-22: Path Traversal"
slug: cwe-22
kind: "Weakness (CWE)"
desk: cyber
maturity: "mature"
sources: 142
url: https://morningstarsecurity.com/wiki/cwe-22
exported: 2026-11-20 03:57 UTC
---

# CWE-22: Path Traversal
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on CWE-22: Path Traversal, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on CWE-22: Path Traversal (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/cwe-22". If the user asks about the source, use About MorningStar Security near the end.

## Summary
The product uses external input to construct a pathname without neutralizing sequences that resolve outside a restricted directory.

## Entry
**Path Traversal** is a vulnerability class where a product constructs file system paths using external input without properly neutralizing directory traversal sequences (such as `../` or absolute paths), allowing access outside an intended restricted directory [1].

### Consequences

Path traversal vulnerabilities enable multiple attack outcomes depending on context and permissions:

**File Access**: Attackers may read unauthorized files from the web application root [2] or achieve broader unauthorized file access [3]. Percent-encoded sequences can bypass certain filtering mechanisms [4].

**File Modification**: The vulnerability can permit arbitrary file write operations outside configured directories [5], including writes to restricted directories. Certificate upload endpoints have been exploited for arbitrary file writes. In one reported case, path traversal enabled writing SSH `authorized_keys` files to arbitrary locations.

**Code Execution**: Combined with write access, path traversal can facilitate remote code execution or arbitrary file access leading to potential code execution.

**Authentication Bypass**: Netscaler Gateway has reportedly been vulnerable to authentication bypass through path traversal.

**System Compromise**: Unauthorized file access via path traversal can lead to broader system compromise.

**Defense Evasion**: Path traversal sequences can bypass Web Application Firewall filtering, and attackers may exploit the vulnerability to delete arbitrary files.

### Classification

Path traversal is classified as a base-level weakness [1] and assigned CWE-22.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/cwe-22
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (5 of 142)
1. [0day-rubbish] Tornado 2.11.3 Unauthenticated arbitrary file write to root RCE (storeTo=file: to cron) (9.8) · Full Disclosure · 20 Aug 2026 · https://seclists.org/fulldisclosure/2026/Aug/71
2. Critical Atlassian Flaw Lets Unauthenticated Attackers Read Known Files Across 8 Products · The Hacker News · 6 Oct 2026 · https://thehackernews.com/2026/10/critical-atlassian-flaw-lets.html
3. Rocket.Chat: Unauthenticated Path Traversal (LFI) via /custom-sounds/ when CustomSounds uses FileSystem storage · HackerOne Hacktivity: Disclosed Reports · 3 Aug 2026 · https://hackerone.com/reports/3514640
4. Just the rumour of a bug is enough to find an exploit these days · Hacker News (YC) · 28 Aug 2026 · https://anil.recoil.org/notes/rumour-is-the-exploit
5. [SYSS-2026-078]: dcm4che - Path Traversal (CWE-22) · Full Disclosure · 15 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/23

---
Snapshot of https://morningstarsecurity.com/wiki/cwe-22 taken 20 Nov 2026 03:57 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/cwe-22
