Skip to content

In-depth lesson · bug class

Path traversal and file inclusion

What every disclosed Path traversal report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.

reports cited in this lesson
1,728

Learning Path traversal reading list Server-side injection, step 4

Overview

What it is and why programs pay for it.

Path traversal and file inclusion are the same underlying mistake seen from two angles: a program takes a path or filename from the user and uses it in a file operation without confirming the result stays inside the directory it meant to use. Traversal is the read, write or delete of a file outside that directory; inclusion is the loading of a local file into the running code, often a template, language file or plugin. The evidence covers 1809 reports, 1565 with summaries and 86 paid, so this is a large, well-trodden class rather than a niche one.

Programs care because the consequences are rarely limited to one file. The same flaw turns up in download endpoints, archive extraction, upload handlers, deletion and cleanup routines, and template resolution, and hunters repeatedly chained it to credential disclosure, code execution and full compromise. Reports show traversal reaching runtime logs and configuration files holding plain text credentials and cloud keys, and archive writes landing in startup or autorun locations.

It is most often found wherever a filename or path parameter exists: enterprise download and file-serving actions, AI and ML tooling endpoints for file read, write and delete, Node.js static file servers, VPN portals, SCADA and industrial software, WordPress plugins, and archive extraction for zip, tar, CAB and EPUB. The common thread is a feature that was built to handle files and trusted its input.

How it works

The mechanics, as the reports show them.

The concept is simple. A feature needs a file, so it takes a name or path from the request and joins it onto a base directory. If the input contains parent-directory segments, an absolute path, or a link that points elsewhere, the joined result resolves outside the base. The program then reads, writes, deletes or includes whatever the resolved path names. Nothing exotic is required; the flaw is the absence of a check after resolution.

The first enabler is direct use of caller-controlled paths in file operations without normalising or restricting them. This appears across whole families of methods in the same product, which is why one finding often becomes many. A privileged method accepting a path from a low-privileged caller is a variant of the same mistake, and so is a deletion routine that builds a path from user input without checking it stays in the storage directory.

The second enabler is archive extraction. Entry names are joined onto a destination path without checking for traversal sequences or absolute paths, and symlinks inside the archive are trusted. A symlink created early can redirect a later entry, so a check that compares each target against the destination prefix still fails. The same pattern appears in zip, tar, RAR, CAB and package extraction across web apps, desktop tools and firmware.

The third enabler is inclusion. Request parameters and cookie values are concatenated into include paths without checking they stay inside the intended directory, or user input reaches a file include with no validation at all. Language, theme and module parameters are typical carriers. The fix is an allow-list of permitted modules or files rather than passing request values into includes.

Filters fail in predictable ways, which is what makes the class so productive. Checks compare a string prefix without a trailing separator, so sibling directories pass. They look only for forward slashes and miss backslashes on Windows. They decode after checking, or strip a substring in one pass so nested sequences survive. They ignore symbolic and hard links, or fail to handle buffer inputs. Each of these is a documented bypass rather than a theoretical one.

Year by year

15 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 346
Reports per year
200119
20061
20115
20121
20133
20148
201512
201619
201733
201878
201973
2020156
2021125
202299
2023171
2024211
2025256
2026346
  1. 2026

    346 reports · median $5,000

    New this year4

    • Decoding happening after a path check, in libraries and web frameworks alike, first appears in the disclosed reports.
    • A compromised GPU process claiming the XSETTINGS selection and publishing a cursor theme name with parent-directory segments first appears in the disclosed reports.
    • A wildcard FTP transfer against a server returning a listing filename with encoded traversal characters first appears in the disclosed reports.
    and 1 more

    Kept working6

    • Many Apple reports described path handling flaws across system components, several fixed with improved path validation.
    • Archive extraction routines joining entry names onto a destination folder without checking for traversal or absolute paths were widely covered.
    and 4 more
  2. 2025

    256 reports · median $5,162

    New this year4

    • AI and ML tooling endpoints for file read, write and delete as a target class first appear in the disclosed reports.
    • Alternate data streams used to hide payloads and reach arbitrary write locations first appear in the disclosed reports.
    • Exposed Vite development servers and allowlist bypasses first appear in the disclosed reports.
    and 1 more

    Kept working6

    • A large group of reports concerned AI and ML tooling, covering file read, write and delete endpoints.
    • Download endpoints taking a filename or path parameter were pointed at system files outside the intended directory.
    and 4 more
  3. 2024

    211 reports · median $4,920

    New this year4

    • Self-hosted LLM application servers as a target class first appear in the disclosed reports.
    • Bypassing earlier MLflow path validation fixes with fragments, semicolons, double decoding and URI scheme misclassification first appears in the disclosed reports.
    • LoLLMS sanitisers handling only forward slashes failing on Windows backslash separators first appears in the disclosed reports.
    and 1 more

    Kept working4

    • Enterprise web products with many file-handling methods were covered, with download, upload and file-serving actions tested for traversal.
    • Known older CVEs such as the Cisco VPN path traversal and the Apache path traversal were tested on internet-facing hosts.
    and 2 more
Every point, year by year

Where it is found

246

The features and places the reports found it in, most-reported first.

  1. Enterprise web application download, upload and file-serving actions.

    Seen in 22 reports
  2. AI and ML tooling endpoints for file read, write and delete.

    Seen in 22 reports
  3. Node.js static file server packages.

    Seen in 15 reports
  4. Download endpoints that take a filename or path parameter.

    Seen in 15 reports
  5. Enterprise network monitoring and access rights management products with many file-handling methods.

    Seen in 13 reports
View all 246

Root causes

411

The mistakes in the code or configuration behind the reports.

  1. User-supplied paths are used in file operations without checking that they stay within the intended directory.

    Seen in 90 reports
  2. Archive entry names were joined onto a destination path without checking for traversal sequences or absolute paths.

    Seen in 44 reports
  3. The raw request URL was joined to the served directory without normalising or rejecting parent-directory segments.

    Seen in 34 reports
  4. Many file-handling methods passed caller-controlled paths straight into file operations without normalising or restricting them.

    Seen in 15 reports
  5. User-supplied file paths were used directly without validation or restriction to the intended directory.

    Seen in 10 reports
View all 411

Things to try

The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.

ticked in this lesson

Download and file-read endpoints

of 3 ticked
  • Seen in 15 reports
  • Seen in 8 reports
  • Seen in 7 reports
More in Download and file-read endpoints

File write, copy and delete operations

of 3 ticked
  • Seen in 11 reports
  • Seen in 8 reports
  • Seen in 7 reports
More in File write, copy and delete operations

Desktop and mobile applications

of 3 ticked
  • Seen in 3 reports
  • Seen in 3 reports
  • Seen in 3 reports
More in Desktop and mobile applications

Encoding and sanitiser bypasses

of 3 ticked
  • Seen in 4 reports
  • Seen in 3 reports
  • Seen in 3 reports
More in Encoding and sanitiser bypasses
View more things to try

Bypasses and variations

193

How reports got past filters, encoders and other defences.

  1. Bypass the existing authentication mechanism before reaching the traversal method.

    Seen in 8 reports
  2. Symbolic and hard links inside archives were used to write outside the extraction directory.

    Seen in 7 reports
  3. Craft an entry name that begins with the destination directory name so a prefix check without a trailing slash passes and the file lands in a sibling directory.

    Seen in 6 reports
  4. Only some path parameters were sanitised, so the unsanitised working-directory parameter was the way around the filter.

    Seen in 5 reports
  5. Use double URL encoding to bypass path filtering.

    Seen in 5 reports
View all 193

Payouts

86 paid

Public bounties in US dollars, from the data. 86 of 1,809 reports show an amount.

a quarter paid up to
$500
median
$1,500
three quarters paid up to
$4,980
highest
$112k

One in ten paid reports was paid $10k or more.

SeverityReportsPaidMedianHighest
Critical 212 11 $2,000 $29k
High 628 24 $2,998 $12k
Medium 271 14 $750 $4,000
Low 32 7 $200 $540
Informational 8 0 None paid None
Unrated 658 30 $2,361 $112k

Typical fixes

98

How programs fixed it, as the reports describe.

  1. Resolve the final path and confirm it stays inside the intended directory before any read, write or delete.

    Seen in 91 reports
  2. Reject archive entries whose names contain traversal sequences or absolute paths before extraction.

    Seen in 19 reports
  3. Detect symlink entries correctly and check the resolved target stays inside the extraction directory before writing or deleting.

    Seen in 19 reports
  4. Validate that each archive entry path resolves inside the intended extraction directory before writing.

    Seen in 17 reports
  5. Use an allow-list of permitted modules or files instead of passing request values into includes.

    Seen in 16 reports
View all 98

Tips for beginners

15

Advice for a first hunt, drawn from the reports.

  1. Keep scope in mind. Many of these findings sit in desktop software, firmware, mobile apps and third-party plugins, and some are only reachable locally or after authentication. Confirm the asset is in scope and the path is reachable by the threat model before writing it up, and say plainly what an attacker needs to start.

    Seen in 16 reports
  2. Test both authenticated and unauthenticated paths. Some of the strongest findings are pre-authentication reads on VPN appliances and management ports, while others require a low-privileged account. Note which one you used, because it changes severity and how the program will triage it.

    Seen in 16 reports
  3. Try the bypasses rather than giving up at the first rejection. Use backslashes on Windows-hosted targets, double encoding, nested sequences that survive a strip, an absolute path when traversal is blocked, or a path supplied as a buffer. Compare how the server normalises each form.

    Seen in 15 reports
  4. When you find one vulnerable method, check its siblings. The evidence shows whole families of methods in the same product sharing the same mistake, such as file copy, delete, mkdir and save, or several export and save methods. Report the pattern rather than a single instance where the program allows it.

    Seen in 15 reports
  5. For inclusion, feed user-controlled data into a PHP include or a template and page name parameter and try to include a local file outside the theme directory. Language, theme and module parameters are the usual carriers, and an allow-list is the usual fix, so a parameter that accepts arbitrary names is the target.

    Seen in 13 reports
View all 15

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on Path traversal, from around the web.

Keep learning

Where this lesson fits, and what to read next.

Lessons on single techniques in Path traversal

How this is made: our model read every listed Path traversal report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 28 Nov 2026 from 1,809 reports. All Path traversal reports.