CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path traversal), published in 2022, page 9
Filter
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
What the weakness is: CWE-22 at MITRE. OWASP Top 10: A01:2025 Broken Access Control. All weaknesses
Related attack patterns (CAPEC): 5
- CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
- CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
- CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
- CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
- CAPEC-126 Path Traversal Likelihood: High · Severity: Very High
The attack patterns MITRE's CAPEC relates to CWE-22, as MITRE names them. Credits.
Ask an AI about CWE-22
Show the prompt
Explain CWE-22: Improper Limitation of a Pathname to a Restricted Directory and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/22.html and https://cve.bz/cve/cwe/22?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 9.3CVE-2022-31521mosaic project mosaicEPSS 1.3%
The Niyaz-Mohamed/mosaic repository through 1.0.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31520logstash-management-api project logstash-management-apiEPSS 1.3%
The Luxas98/logstash-management-api repository through 2020-05-04 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31519windmill project windmillEPSS 1.3%
The Lukasavicus/WindMill repository through 1.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31518python-recipe-database project python-recipe-databaseEPSS 1.3%
The JustAnotherSoftwareDeveloper/Python-Recipe-Database repository through 2021-03-31 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31517mercury sample manager project mercury sample managerEPSS 1.3%
The HolgerGraef/MSM repository through 2021-04-20 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31516harveyzyh python project harveyzyh pythonEPSS 1.3%
The Harveyzyh/Python repository through 2022-05-04 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31515carceresbe project carceresbeEPSS 1.3%
The Delor4/CarceresBE repository through 1.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31514fan platform project fan platformEPSS 1.3%
The Caoyongqi912/Fan_Platform repository through 2021-04-20 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31513krypton project kryptonEPSS 1.3%
The BolunHan/Krypton repository through 2021-06-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31512flask-mvc project flask-mvcEPSS 1.4%
The Atom02/flask-mvc repository through 2020-09-14 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31511equanimity project equanimityEPSS 1.3%
The AFDudley/equanimity repository through 2014-04-23 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31510simple-rat project simple-ratEPSS 1.5%
The sergeKashkin/Simple-RAT repository before 2022-05-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31509iedadata usap-dc web submission and dataset searchEPSS 1.3%
The iedadata/usap-dc-website repository through 1.0.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31508idayrus e-votingEPSS 1.5%
The idayrus/evoting repository before 2022-05-08 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31507ganga project gangaEPSS 1.7%
The ganga-devs/ganga repository before 8.5.10 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31506cmu opendiamondEPSS 1.5%
The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31505mercadoenlineaback project mercadoenlineabackEPSS 1.3%
The cheo0/MercadoEnLineaBack repository through 2022-05-04 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31504baiduwenkuspider flaskweb project baiduwenkuspider flaskwebEPSS 1.5%
The ChangeWeDer/BaiduWenkuSpider_flaskWeb repository before 2021-11-29 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31503orchestEPSS 1.6%
The orchest/orchest repository before 2022.05.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31502wormnest project wormnestEPSS 1.5%
The operatorequals/wormnest repository through 0.4.7 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31501onyxforum project onyxforumEPSS 1.5%
The ChaoticOnyx/OnyxForum repository before 2022-05-04 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 7.5CVE-2022-35410EPSS 2.3%
mat2 (aka metadata anonymisation toolkit) before 0.13.0 allows ../ directory traversal during the ZIP archive cleaning process. This primarily affects mat2 web instances, in which clients could obtain sensitive information via a crafted ar…
- 9.8CVE-2022-25046control-webpanel webpanelEPSS 57%
A path traversal vulnerability in loader.php of CWP v0.9.8.1122 allows attackers to execute arbitrary code via a crafted POST request.
- 4.3CVE-2022-20862cisco unified communications managerEPSS 1.5%
A vulnerability in the web-based management interface of Cisco Unified Communications Manager (Unified CM) and Cisco Unified Communications Manager Session Management Edition (Unified CM SME) could allow an authenticated, remote attacker t…
- 6.5CVE-2022-20812ciscoEPSS 2.0%
Multiple vulnerabilities in the API and in the web-based management interface of Cisco Expressway Series and Cisco TelePresence Video Communication Server (VCS) could allow a remote attacker to overwrite arbitrary files or conduct null byt…
- 6.5CVE-2022-20791ciscoEPSS 1.5%
A vulnerability in the database user privileges of Cisco Unified Communications Manager (Unified CM), Cisco Unified Communications Manager Session Management Edition (Unified CM SME), and Cisco Unified Communications Manager IM & Prese…
- 9.8CVE-2022-31836beegoEPSS 1.7%
The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.
- 7.5CVE-2022-32551zohocorp manageengine servicedesk plus mspEPSS 3.5%
Zoho ManageEngine ServiceDesk Plus MSP before 10604 allows path traversal (to WEBINF/web.xml from sample/WEB-INF/web.xml or sample/META-INF/web.xml).
- 9.1CVE-2022-28127robustel r1510 firmwareEPSS 38%
A data removal vulnerability exists in the web_server /action/remove/ API functionality of Robustel R1510 3.3.0. A specially-crafted network request can lead to arbitrary file deletion. An attacker can send a sequence of requests to trigge…
- 8.1CVE-2017-20105simplessusEPSS 1.0%
A vulnerability was found in Simplessus 3.7.7. It has been rated as critical. This issue affects some unknown processing. The manipulation of the argument path with the input ..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2…
- 6.5CVE-2022-33116openeclassEPSS 1.8%
An issue in the jmpath variable in /modules/mindmap/index.php of GUnet Open eClass Platform (aka openeclass) v3.12.4 and below allows attackers to read arbitrary files via a directory traversal.
- 2.7CVE-2022-2106smarticsEPSS 0.7%
Elcomplus SmartICS v2.3.4.0 does not validate the filenames sufficiently, which enables authenticated administrator-level users to perform path traversal attacks and specify arbitrary files.
- 5.5CVE-2017-20102album lock project album lockEPSS 0.3%
A vulnerability was found in Album Lock 4.0 and classified as critical. Affected by this issue is some unknown functionality of the file /getImage. The manipulation of the argument filePaht leads to path traversal. Attacking locally is a r…
- 9.1CVE-2022-1953product configurator for woocommerce project product configurator for woocommerceEPSS 1.7%
The Product Configurator for WooCommerce WordPress plugin before 1.2.32 suffers from an arbitrary file deletion vulnerability via an AJAX action, accessible to unauthenticated users, which accepts user input that is being used in a path an…
- 4.9CVE-2022-29097dell wyse management suiteEPSS 1.4%
Dell WMS 3.6.1 and below contains a Path Traversal vulnerability in Device API. A remote attacker could potentially exploit this vulnerability, to gain unauthorized read access to the files stored on the server filesystem, with the privile…
- 9.1CVE-2022-30117concretecms concrete cmsEPSS 2.2%
Concrete 8.5.7 and below as well as Concrete 9.0 through 9.0.2 allow traversal in /index.php/ccm/system/file/upload which could result in an Arbitrary File Delete exploit. This was remediated by sanitizing /index.php/ccm/system/file/upload…
- 9.8CVE-2022-2120offis dcmtkEPSS 3.5%
OFFIS DCMTK's (All versions prior to 3.6.7) service class user (SCU) is vulnerable to relative path traversal, allowing an attacker to write DICOM files into arbitrary directories under controlled names. This could allow remote code execut…
- 9.8CVE-2022-2119offis dcmtkEPSS 3.5%
OFFIS DCMTK's (All versions prior to 3.6.7) service class provider (SCP) is vulnerable to path traversal, allowing an attacker to write DICOM files into arbitrary directories under controlled names. This could allow remote code execution.
- 9.8CVE-2022-1518illumina local run managerEPSS 1.7%
LRM contains a directory traversal vulnerability that can allow a malicious actor to upload outside the intended directory structure.
- 6.5CVE-2013-1891opencartExploitEPSS 6.6%
In OpenCart 1.4.7 to 1.5.5.1, implemented anti-traversal code in filemanager.php is ineffective and can be bypassed.
- 6.5CVE-2021-41636melag ftp serverEPSS 1.5%
MELAG FTP Server 2.2.0.4 allows an attacker to use the CWD command to break out of the FTP servers root directory and operate on the entire operating system, while the access restrictions of the user running the FTP server apply.
- 7.5CVE-2022-34179jenkins embeddable build statusEPSS 1.8%
Jenkins Embeddable Build Status Plugin 2.0.3 and earlier allows specifying a `style` query parameter that is used to choose a different SVG image style without restricting possible values, resulting in a relative path traversal vulnerabili…
- 7.5CVE-2022-34177jenkins pipeline\EPSS 1.7%
Jenkins Pipeline: Input Step Plugin 448.v37cea_9a_10a_70 and earlier archives files uploaded for `file` parameters for Pipeline `input` steps on the controller as part of build metadata, using the parameter name without sanitization as a r…
- 8.8CVE-2022-31395algosolutions 8373 ip zone paging adapter firmwareEPSS 2.9%
Algo Communication Products Ltd. 8373 IP Zone Paging Adapter Firmware 1.7.6 allows attackers to perform a directory traversal via a web request sent to /fm-data.lua.
- 7.5CVE-2022-33995devolutions remote desktop managerEPSS 2.0%
A path traversal issue in entry attachments in Devolutions Remote Desktop Manager before 2022.2 allows attackers to create or overwrite files in an arbitrary location.
- 9.8CVE-2022-29774ispyconnect ispyEPSS 5.9%
iSpy v7.2.2.0 is vulnerable to remote command execution via path traversal.
- 5.3CVE-2022-31062glpi-project glpi inventoryExploitEPSS 5.9%
### Impact A plugin public script can be used to read content of system files. ### Patches Upgrade to version 1.0.2. ### Workarounds `b/deploy/index.php` file can be deleted if deploy feature is not used.
- 7.5CVE-2022-25856argo events project argo eventsEPSS 1.9%
The package github.com/argoproj/argo-events/sensors/artifacts before 1.7.1 are vulnerable to Directory Traversal in the (g *GitArtifactReader).Read() API in git.go. This could allow arbitrary file reads if the GitArtifactReader is provided…
- 7.5CVE-2022-31372wiris mathtypeEPSS 1.3%
Wiris Mathtype v7.28.0 was discovered to contain a path traversal vulnerability in the resourceFile parameter. This vulnerability is exploited via a crafted request to the resource handler.
- 8.8CVE-2021-33036apache hadoopEPSS 4.0%
In Apache Hadoop 2.2.0 to 2.10.1, 3.0.0-alpha1 to 3.1.4, 3.2.0 to 3.2.2, and 3.3.0 to 3.3.1, a user who can escalate to yarn user can possibly run arbitrary commands as root user. Users should upgrade to Apache Hadoop 2.10.2, 3.2.3, 3.3.2 …