Skip to main content

About CWE-22

Attackers may read files outside the intended directory, overwrite or create files such as programs and libraries, or corrupt critical files. That can expose sensitive data, bypass security mechanisms, crash the product or lead to code execution.

MITRE name
Improper Limitation of a Pathname to a Restricted Directory
Abstraction
Base: abstract, but detailed enough to infer detection and prevention methods
Status
Stable

Also Known As

  • Path traversal
  • Directory traversal
  • Path transversal

Mitigations

  • Validate filenames with a strict allowlist of characters, allow at most one dot, and exclude directory separators.
  • Decode and canonicalize input to the application's internal form before validating it, and avoid decoding the same input twice.
  • Do not rely on filters that strip dangerous characters, since a filtered result can still form a traversal sequence.
  • Repeat client-side checks on the server.
  • Use a list of permitted file extensions to reduce related upload risks.

Detection
Automated static analysis is rated highly effective, though tuning may be needed to deprioritize paths only an administrator controls. Manual code review is also effective when file operations can be assessed in reasonable time.

CWE-22 in the KEV Catalog

as of 2026-11-10
All KEV statistics→
  • 88 CISA KEV entries name Path Traversal (CWE-22) in their CVE record, ranking 5th among the 193 weaknesses named in the catalog.
  • CISA added 9 CWE-22 entries to the KEV catalog in 2024, 13 in 2025, and 15 so far in 2026.
  • Fortinet, Microsoft, and SAP have the most CWE-22 entries in the CISA KEV catalog (4 each).
  • For CWE-22 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 59.5 days, compared with 16 days for all entries added in that period.
  • CISA marks 40% of CWE-22 KEV entries (35 of 88) as known to be used in ransomware campaigns, compared with 20% of all KEV entries.
  • CISA's SSVC enrichment rates 70% of CWE-22 KEV entries with SSVC data (62 of 88) as automatable, compared with 41% across the catalog.

Related Attack Patterns

5 CAPEC patterns
CAPEC-126Path TraversalStandard · Severity Very High · Likelihood High
CAPEC-76Manipulating Web Input to File System CallsDetailed · Severity Very High · Likelihood High
CAPEC-64Using Slashes and URL Encoding Combined to Bypass Validation LogicDetailed · Severity High · Likelihood High
CAPEC-78Using Escaped Slashes in Alternate EncodingDetailed · Severity High · Likelihood High
CAPEC-79Using Slashes in Alternate EncodingDetailed · Severity High · Likelihood High

CWE-22 Vulnerabilities

106 CVEs
CVECVSS
CVE-2025-61624KEV
Fortinet Multiple Products Path Traversal Vulnerability
5.4
CVE-2021-3199KEV
ONLYOFFICE Docs Server Path Traversal Vulnerability
9.8
CVE-2026-104286KEV
Fortinet FortiMail Path Traversal Vulnerability
9.8
CVE-2026-93616KEV
Directory Traversal and File upload allows execution of arbitrary script on the Management Server
9.8
CVE-2026-85706KEV
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab
10.0
CVE-2026-66384KEV
Authenticated users may write data outside the intended Docker cache path
5.3
CVE-2026-59310KEV
vCenter directory-traversal vulnerability
9.8
CVE-2026-48282KEV
ColdFusion | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)
10.0
CVE-2026-34909KEV
Ubiquiti UniFi OS Path Traversal Vulnerability
10.0
CVE-2026-20262KEV
Cisco Catalyst SD-WAN Manager Arbitrary File Write Vulnerability
6.5
CVE-2024-1708KEV
Improper limitation of a pathname to a restricted directory (“path traversal”)
8.4
CVE-2024-7399KEV
Samsung MagicINFO 9 Server Path Traversal Vulnerability
8.8
CVE-2024-57728KEV
SimpleHelp Path Traversal Vulnerability
7.2
CVE-2025-2749KEV
Kentico Xperience <= 13.0.178 Staging Media File Upload Authenticated RCE
7.2
CVE-2025-8110KEV
File overwrite in file update API in Gogs
8.7
CVE-2025-6218KEV
RARLAB WinRAR Directory Traversal Remote Code Execution Vulnerability
7.8
CVE-2025-61884KEV
Oracle E-Business Suite Server-Side Request Forgery (SSRF) Vulnerability
7.5
CVE-2021-43798KEV
Grafana path traversal
7.5
CVE-2019-5418KEV
Rails Ruby on Rails Path Traversal Vulnerability
7.5
CVE-2024-0769KEV
D-Link DIR-859 HTTP POST Request hedwig.cgi path traversal
5.3
CVE-2025-4632KEV
Samsung MagicINFO 9 Server Path Traversal Vulnerability
9.8
CVE-2023-38950KEV
ZKTeco BioTime Path Traversal Vulnerability
7.5
CVE-2025-34028KEV
Commvault Command Center Innovation Release <= 11.38.25 Unathenticated Install Package Path Traversal
9.3
CVE-2017-12637KEV
SAP NetWeaver Directory Traversal Vulnerability
7.5
CVE-2024-4885KEV
WhatsUp Gold GetFileWithoutZip Directory Traversal Remote Code Execution Vulnerability
9.8
CVE-2024-57727KEV
SimpleHelp Path Traversal Vulnerability
9.1
CVE-2024-41713KEV
Mitel MiCollab Path Traversal Vulnerability
9.1
CVE-2024-55550KEV
Mitel MiCollab Path Traversal Vulnerability
4.4
CVE-2024-11667KEV
Zyxel Multiple Firewalls Path Traversal Vulnerability
7.5
CVE-2021-26086KEV
Atlassian Jira Server and Data Center Path Traversal Vulnerability
5.3
CVE-2019-16278KEV
Nostromo nhttpd Directory Traversal Vulnerability
9.8
CVE-2024-8963KEV
Ivanti Cloud Services Appliance (CSA) Path Traversal Vulnerability
9.4
CVE-2021-20124KEV
Draytek VigorConnect Path Traversal Vulnerability
7.5
CVE-2021-20123KEV
Draytek VigorConnect Path Traversal Vulnerability
7.5
CVE-2024-7262KEV
Arbitrary Code Execution in WPS Office
9.3
CVE-2024-32113KEV
Apache OFBiz: Path traversal leading to RCE
9.1
CVE-2024-28995KEV
SolarWinds Serv-U L Directory Transversal Vulnerability
8.6
CVE-2023-41266KEV
Qlik Sense Path Traversal Vulnerability
8.2
CVE-2023-47246KEV
SysAid Server Path Traversal Vulnerability
9.8
CVE-2023-32315KEV
Openfire administration console authentication bypass
8.6
CVE-2023-35081KEV
Ivanti Endpoint Manager Mobile (EPMM) Path Traversal Vulnerability
7.2
CVE-2022-41328KEV
Fortinet FortiOS Path Traversal Vulnerability
6.5
CVE-2018-18809KEV
TIBCO JasperReports Library Directory Traversal Vulnerability
9.9
CVE-2022-26500KEV
Veeam Backup & Replication Remote Code Execution Vulnerability
8.8
CVE-2022-41352KEV
Synacor Zimbra Collaboration Suite (ZCS) Arbitrary File Upload Vulnerability
9.8
CVE-2022-26352KEV
dotCMS Unrestricted Upload of File Vulnerability
9.8
CVE-2022-27925KEV
Synacor Zimbra Collaboration Suite (ZCS) Arbitrary File Upload Vulnerability
7.2
CVE-2022-37042KEV
Synacor Zimbra Collaboration Suite (ZCS) Authentication Bypass Vulnerability
9.8
CVE-2022-30333KEV
RARLAB UnRAR Directory Traversal Vulnerability
9.8
CVE-2021-38163KEV
SAP NetWeaver Unrestricted File Upload Vulnerability
9.9
CVE-2019-7195KEV
QNAP Photo Station Path Traversal Vulnerability
9.8
CVE-2019-7194KEV
QNAP Photo Station Path Traversal Vulnerability
9.8
CVE-2015-0016KEV
Microsoft Windows TS WebProxy Directory Traversal Vulnerability
7.8
CVE-2013-3993KEV
IBM InfoSphere BigInsights Invalid Input Vulnerability
6.5
CVE-2022-29464KEV
WSO2 Multiple Products Unrestrictive Upload of File Vulnerability
9.8
CVE-2014-0780KEV
InduSoft Web Studio Path Traversal
9.8
CVE-2019-7483KEV
SonicWall SMA100 Directory Traversal Vulnerability
7.5
CVE-2010-2861KEV
Adobe ColdFusion Directory Traversal Vulnerability
7.5
CVE-2016-0752KEV
Ruby on Rails Directory Traversal Vulnerability
7.5
CVE-2015-3035KEV
TP-Link Multiple Archer Devices Directory Traversal Vulnerability
7.5
CVE-2015-4068KEV
Arcserve Unified Data Protection (UDP) Directory Traversal Vulnerability
9.1
CVE-2014-0130KEV
Ruby on Rails Directory Traversal Vulnerability
7.5
CVE-2022-21999KEV
Windows Print Spooler Elevation of Privilege Vulnerability
7.8
CVE-2015-0666KEV
Cisco Prime Data Center Network Manager (DCNM) Directory Traversal Vulnerability
7.5
CVE-2020-1631KEV
Out of Cycle Security Advisory: Junos OS: Security vulnerability in J-Web and web based (HTTP/HTTPS) services
8.8
CVE-2020-14864KEV
Oracle Business Intelligence Enterprise Edition Path Transversal
7.5
CVE-2018-14847KEV
MikroTik Router OS Directory Traversal Vulnerability
9.1
CVE-2019-11510KEV
Ivanti Pulse Connect Secure Arbitrary File Read Vulnerability
9.9
CVE-2019-19781KEV
Citrix ADC, Gateway, and SD-WAN WANOP Appliance Code Execution Vulnerability
9.8
CVE-2020-5902KEV
F5 BIG-IP Traffic Management User Interface (TMUI) Remote Code Execution Vulnerability
9.8
CVE-2021-22005KEV
VMware vCenter Server File Upload Vulnerability
9.8
CVE-2018-13379KEV
Fortinet FortiOS SSL VPN Path Traversal Vulnerability
9.1
CVE-2021-41773KEV
Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49
7.5
CVE-2021-20090KEV
Arcadyan Buffalo Firmware Path Traversal Vulnerability
9.8
CVE-2021-42013KEV
Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
9.8
CVE-2019-3396KEV
Atlassian Confluence Server and Data Center Server-Side Template Injection Vulnerability
9.8
CVE-2021-27065KEV
Microsoft Exchange Server Remote Code Execution Vulnerability
7.8
CVE-2021-21972KEV
VMware vCenter Server Remote Code Execution Vulnerability
9.8
CVE-2021-40444KEV
Microsoft MSHTML Remote Code Execution Vulnerability
8.8
CVE-2020-11738KEV
WordPress Snap Creek Duplicator Plugin File Download Vulnerability
7.5
CVE-2019-3398KEV
Atlassian Confluence Server and Data Center Path Traversal Vulnerability
8.8
CVE-2019-20085KEV
TVT NVMS-1000 Directory Traversal Vulnerability
7.5
CVE-2020-11652KEV
SaltStack Salt Path Traversal Vulnerability
6.5
CVE-2020-4430KEV
IBM Data Risk Manager Directory Traversal Vulnerability
4.3
CVE-2021-20023KEV
SonicWall Email Security Path Traversal Vulnerability
4.9
CVE-2016-3976KEV
SAP NetWeaver Directory Traversal Vulnerability
7.5
CVE-2018-2380KEV
SAP Customer Relationship Management (CRM) Path Traversal Vulnerability
6.6
CVE-2019-18187KEV
Trend Micro OfficeScan Directory Traversal Vulnerability
8.8
CVE-2026-5027
Langflow - Path Traversal Arbitrary File Write via upload_user_file
8.8
CVE-2026-2255710.0
CVE-2026-59774
Gitea Org-mode file disclosure and code execution
9.8
CVE-2026-27305
ColdFusion | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)
8.6
CVE-2026-33497
Langflow: /profile_pictures/{folder_name}/{file_name} endpoint file reading
8.7
CVE-2026-28208
Junrar has arbitrary file write due to backslash path traversal bypass in LocalFolderExtractor on Linux/Unix
5.9
CVE-2026-33309
Langflow has an Arbitrary File Write (RCE) via v2 API
10.0
CVE-2026-1056
Snow Monkey Forms <= 12.0.3 - Unauthenticated Arbitrary File Deletion via Path Traversal
9.8
CVE-2026-25895
FUXA Unauthenticated Remote Code Execution via Arbitrary File Write in Upload API
9.5
CVE-2026-40383
Joomla! Core - [20260509] - LFI in HTMLView layout parameter
7.5
CVE-2026-27825
MCP Atlassian has an arbitrary file write leading to arbitrary code execution via unconstrained download_path in confluence_download_attachment
9.1
CVE-2026-27483
MindsDB has Path Traversal in /api/files Leading to Remote Code Execution
8.8

Frequently Asked Questions

What is CWE-22?→

CWE-22 is MITRE's entry for path traversal. Outside input builds a file path that escapes the directory it was supposed to stay within.

Which child entries should be considered instead of CWE-22?→

MITRE suggests CWE-23 for relative path traversal and CWE-36 for absolute path traversal when the details are known.

How many exploited vulnerabilities are classified as CWE-22?→

This database lists 106 CVE records mapped to CWE-22 by their CVE Numbering Authority. 88 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 35 to known ransomware campaigns. Examples include CVE-2025-61624, CVE-2021-3199, CVE-2026-104286.

How quickly are CWE-22 vulnerabilities added to the KEV catalog?→

For CWE-22 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 59.5 days, compared with 16 days for all entries added in that period. These figures are as of November 10, 2026.

Weakness definitions summarized from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.