CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path traversal), published in 2023, page 6
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
- 7.5CVE-2023-4616lg led assistantEPSS 1.6%
This vulnerability allows remote attackers to disclose sensitive information on affected installations of LG LED Assistant. Authentication is not required to exploit this vulnerability. The specific flaw exists within the /api/thumbnail en…
- 7.5CVE-2023-4615lg led assistantEPSS 1.6%
This vulnerability allows remote attackers to disclose sensitive information on affected installations of LG LED Assistant. Authentication is not required to exploit this vulnerability. The specific flaw exists within the /api/download/upd…
- 9.8CVE-2023-4614lg led assistantEPSS 2.5%
This vulnerability allows remote attackers to execute arbitrary code on affected installations of LG LED Assistant. Authentication is not required to exploit this vulnerability. The specific flaw exists within the /api/installation/setThum…
- 9.8CVE-2023-4613lg led assistantEPSS 2.5%
This vulnerability allows remote attackers to execute arbitrary code on affected installations of LG LED Assistant. Authentication is not required to exploit this vulnerability. The specific flaw exists within the /api/settings/upload endp…
- 4.9CVE-2023-39912zohocorp manageengine admanager plusEPSS 3.8%
Zoho ManageEngine ADManager Plus before 7203 allows Help Desk Technician users to read arbitrary files on the machine where this product is installed.
- 6.5CVE-2023-41747acronis cloud managerEPSS 0.4%
Sensitive information disclosure due to unauthenticated path traversal. The following products are affected: Acronis Cloud Manager (Windows) before build 6.2.23089.203.
- 3.8CVE-2023-41044graylogEPSS 0.7%
Graylog is a free and open log management platform. A partial path traversal vulnerability exists in Graylog's `Support Bundle` feature. The vulnerability is caused by incorrect user input validation in an HTTP API resource. Graylog's Supp…
- 8.1CVE-2023-31167selinc sel-5036 acselerator bay screen builderEPSS 0.4%
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Schweitzer Engineering Laboratories SEL-5036 acSELerator Bay Screen Builder Software on Windows allows Relative Path Traversal. SEL acSELera…
- 6.5CVE-2023-41040gitpython project gitpythonEPSS 1.1%
GitPython is a python library used to interact with Git repositories. In order to resolve some git references, GitPython reads files from the `.git` directory, in some places the name of the file being read is provided by the user, GitPyth…
- 7.8CVE-2023-39139archive project archiveEPSS 0.4%
An issue in Archive v3.3.7 allows attackers to execute a path traversal via extracting a crafted zip file.
- 7.8CVE-2023-39138peakstep zipfoundationEPSS 0.4%
An issue in ZIPFoundation v0.9.16 allows attackers to execute a path traversal via extracting a crafted zip file.
- 7.8CVE-2023-39135marmelroy zipEPSS 0.4%
An issue in Zip Swift v2.1.2 allows attackers to execute a path traversal attack via a crafted zip entry.
- 8.8CVE-2023-40597splunkEPSS 0.2%
In Splunk Enterprise versions lower than 8.2.12, 9.0.6, and 9.1.1, an attacker can exploit an absolute path traversal to execute arbitrary code that is located on a separate disk.
- 6.5CVE-2023-41266qlik senseKEVEPSS 85%
A path traversal vulnerability found in Qlik Sense Enterprise for Windows for versions May 2023 Patch 3 and earlier, February 2023 Patch 7 and earlier, November 2022 Patch 10 and earlier, and August 2022 Patch 12 and earlier allows an unau…
- 5.3CVE-2023-39559web-audimex audimexeeEPSS 0.7%
AudimexEE 15.0 was discovered to contain a full path disclosure vulnerability.
- 7.2CVE-2023-20890vmware aria operations for networksEPSS 20%
Aria Operations for Networks contains an arbitrary file write vulnerability. An authenticated malicious actor with administrative access to VMware Aria Operations for Networks can write files to arbitrary locations resulting in remote code…
- 7.5CVE-2023-40828pf4j project pf4jEPSS 1.5%
An issue in pf4j pf4j v.3.9.0 and before allows a remote attacker to obtain sensitive information and execute arbitrary code via the expandIfZip method in the extract function.
- 7.5CVE-2023-40827pf4j project pf4jEPSS 1.7%
An issue in pf4j pf4j v.3.9.0 and before allows a remote attacker to obtain sensitive information and execute arbitrary code via the loadpluginPath parameter.
- 7.5CVE-2023-40826pf4j project pf4jEPSS 1.4%
An issue in pf4j pf4j v.3.9.0 and before allows a remote attacker to obtain sensitive information and execute arbitrary code via the zippluginPath parameter.
- 7.8CVE-2023-39810busyboxEPSS 0.8%
An issue in the CPIO command of Busybox v1.33.2 allows attackers to execute a directory traversal.
- 5.3CVE-2023-40587EPSS 0.8%
Pyramid is an open source Python web framework. A path traversal vulnerability in Pyramid versions 2.0.0 and 2.0.1 impacts users of Python 3.11 that are using a Pyramid static view with a full filesystem path and have a `index.html` file t…
- 6.5CVE-2023-3406m-files classic webEPSS 0.7%
Path Traversal issue in M-Files Classic Web versions below 23.6.12695.3 and LTS Service Release Versions before 23.2 LTS SR3 allows authenticated user to read some restricted files on the web server
- 7.5CVE-2023-32756edetw u-office forceEPSS 1.2%
e-Excellence U-Office Force has a path traversal vulnerability within its file uploading and downloading functions. An unauthenticated remote attacker can exploit this vulnerability to read arbitrary system files, but can’t control system …
- 9.8CVE-2023-39699icewarp mail serverEPSS 1.4%
IceWarp Mail Server v10.4.5 was discovered to contain a local file inclusion (LFI) vulnerability via the component /calendar/minimizer/index.php. This vulnerability allows attackers to include or execute files from the local file system of…
- 7.5CVE-2023-39026filemageExploitEPSS 18%
Directory Traversal vulnerability in FileMage Gateway Windows Deployments v.1.10.8 and before allows a remote attacker to obtain sensitive information via a crafted request to the /mgmt/ component.
- 9.1CVE-2020-24113yealink w60b firmwareEPSS 1.3%
Directory Traversal vulnerability in Contacts File Upload Interface in Yealink W60B version 77.83.0.85, allows attackers to gain sensitive information and cause a denial of service (DoS).
- 7.5CVE-2023-39141ziahamza webui-aria2EPSS 3.4%
webui-aria2 commit 4fe2e was discovered to contain a path traversal vulnerability.
- 7.2CVE-2023-37428arubanetworks edgeconnect sd-wan orchestratorEPSS 1.1%
A vulnerability in the EdgeConnect SD-WAN Orchestrator web-based management interface allows remote authenticated users to run arbitrary commands on the underlying host. A successful exploit could allow an attacker to execute arbitrary com…
- 8.8CVE-2023-25914danfoss ak-sm 800a firmwareEPSS 0.8%
Due to improper restriction, authenticated attackers could retrieve and read system files of the underlying server through the XML interface. The information that can be read can lead to a full system compromise.
- 6.5CVE-2023-2971typoraEPSS 0.5%
Improper path handling in Typora before 1.7.0-dev on Windows and Linux allows a crafted webpage to access local files and exfiltrate them to remote web servers via "typora://app/typemark/". This vulnerability can be exploited if a user ope…
- 7.4CVE-2023-2316typoraEPSS 0.7%
Improper path handling in Typora before 1.6.7 on Windows and Linux allows a crafted webpage to access local files and exfiltrate them to remote web servers via "typora://app/<absolute-path>". This vulnerability can be exploited if a user…
- 7.1CVE-2023-2110obsidianEPSS 0.4%
Improper path handling in Obsidian desktop before 1.2.8 on Windows, Linux and macOS allows a crafted webpage to access local files and exfiltrate them to remote web servers via "app://local/<absolute-path>". This vulnerability can be explo…
- 9.8CVE-2023-26469joraniExploitEPSS 83%
In Jorani 1.0.0, an attacker could leverage path traversal to access files and execute code on the server.
- 9.8CVE-2023-2917rockwellautomation thinmanager thinserverExploitEPSS 72%
The Rockwell Automation Thinmanager Thinserver is impacted by an improper input validation vulnerability. Due to an improper input validation, a path traversal vulnerability exists, via the filename field, when the ThinManager processes a…
- 9.1CVE-2023-2915rockwellautomation thinmanager thinserverExploitEPSS 82%
The Rockwell Automation Thinmanager Thinserver is impacted by an improper input validation vulnerability, Due to improper input validation, a path traversal vulnerability exists when the ThinManager software processes a certain function. I…
- 8.1CVE-2023-3698asustor data masterEPSS 0.6%
Printer service fails to adequately handle user input, allowing an remote unauthorized users to navigate beyond the intended directory structure and delete files. Affected products and versions include: ADM 4.0.6.RIS1, 4.1.0 and below as w…
- 8.8CVE-2023-3697asustor data masterEPSS 0.7%
Printer service fails to adequately handle user input, allowing an remote unauthorized users to navigate beyond the intended directory structure and create files. Affected products and versions include: ADM 4.0.6.RIS1, 4.1.0 and below as w…
- 8.1CVE-2023-34217moxaEPSS 0.4%
TN-4900 Series firmware versions v1.2.4 and prior and TN-5900 Series firmware versions v3.3 and prior are vulnerable to the command-injection vulnerability. This vulnerability stems from insufficient input validation in the certificate-del…
- 8.1CVE-2023-34216moxaEPSS 0.7%
TN-4900 Series firmware versions v1.2.4 and prior and TN-5900 Series firmware versions v3.3 and prior are vulnerable to the command-injection vulnerability. This vulnerability derives from insufficient input validation in the key-delete fu…
- 7.1CVE-2023-20229cisco duo device health applicationEPSS 0.4%
A vulnerability in the CryptoService function of Cisco Duo Device Health Application for Windows could allow an authenticated, local attacker with low privileges to conduct directory traversal attacks and overwrite arbitrary files on an af…
- 9.8CVE-2020-26037evenbalance punkbusterEPSS 2.2%
Directory Traversal vulnerability in Server functionalty in Even Balance Punkbuster version 1.902 before 1.905 allows remote attackers to execute arbitrary code.
- 6.5CVE-2023-40028ghostExploitEPSS 66%
Ghost is an open source content management system. Versions prior to 5.59.1 are subject to a vulnerability which allows authenticated users to upload files that are symlinks. This can be exploited to perform an arbitrary file read of any f…
- 8.8CVE-2023-32004EPSS 2.1%
A vulnerability has been discovered in Node.js version 20, specifically within the experimental permission model. This flaw relates to improper handling of Buffers in file system APIs causing a traversal path to bypass when verifying file …
- 5.3CVE-2023-32003EPSS 1.2%
`fs.mkdtemp()` and `fs.mkdtempSync()` can be used to bypass the permission model check using a path traversal attack. This flaw arises from a missing check in the fs.mkdtemp() API and the impact is a malicious actor could create an arbitra…
- 5.5CVE-2023-21268google androidEPSS 0.1%
In update of MmsProvider.java, there is a possible way to change directory permissions due to a path traversal error. This could lead to local denial of service of SIM recognition with no additional execution privileges needed. User intera…
- 7.5CVE-2023-40274getzola zolaEPSS 1.1%
An issue was discovered in zola 0.13.0 through 0.17.2. The custom implementation of a web server, available via the "zola serve" command, allows directory traversal. The handle_request function, used by the server to process HTTP requests,…
- 9.1CVE-2023-39402huaweiEPSS 0.5%
Parameter verification vulnerability in the installd module. Successful exploitation of this vulnerability may cause sandbox files to be read and written without authorization.
- 9.1CVE-2023-39401huaweiEPSS 0.5%
Parameter verification vulnerability in the installd module. Successful exploitation of this vulnerability may cause sandbox files to be read and written without authorization.
- 9.1CVE-2023-39400huaweiEPSS 0.5%
Parameter verification vulnerability in the installd module. Successful exploitation of this vulnerability may cause sandbox files to be read and written without authorization.
- 7.5CVE-2021-26504dgtl huemagicEPSS 1.4%
Directory Traversal vulnerability in Foddy node-red-contrib-huemagic version 3.0.0, allows remote attackers to gain sensitive information via crafted request in res.sendFile API in hue-magic.js.