CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path traversal), published in 2022, page 15
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
- 8.1CVE-2022-23602nim-langEPSS 1.3%
Nimforum is a lightweight alternative to Discourse written in Nim. In versions prior to 2.2.0 any forum user can create a new thread/post with an include referencing a file local to the host operating system. Nimforum will render the file …
- 9.8CVE-2021-23520juceEPSS 1.1%
The package juce-framework/juce before 6.1.5 are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) via the ZipFile::uncompressEntry function in juce_ZipFile.cpp. This vulnerability is triggered when the archive is extrac…
- 4.9CVE-2022-23409ethercreative logsExploitEPSS 14%
The Logs plugin before 3.0.4 for Craft CMS allows remote attackers to read arbitrary files via input to actionStream in Controller.php.
- 7.5CVE-2021-34805land-software faust iserverEPSS 25%
An issue was discovered in FAUST iServer before 9.0.019.019.7. For each URL request, it accesses the corresponding .fau file on the operating system without preventing %2e%2e%5c directory traversal.
- 9.8CVE-2021-23484zip-local project zip-localEPSS 2.1%
The package zip-local before 0.3.5 are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) which can lead to an extraction of a crafted file outside the intended extraction directory.
- 7.5CVE-2022-22790synel eharmonyEPSS 1.1%
SYNEL - eharmony Directory Traversal. Directory Traversal - is an attack against a server or a Web application aimed at unauthorized access to the file system. on the "Name" parameter the attacker can return to the root directory and open …
- 5.3CVE-2021-32841sharpziplib project sharpziplibEPSS 1.1%
SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Starting version 1.3.0 and prior to version 1.3.3, a check was added if the destination file is under destination directory. However, it is not enforced that `destDir` ends wi…
- 5.3CVE-2021-32842sharpziplib project sharpziplibEPSS 0.9%
SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Starting version 1.0.0 and prior to version 1.3.3, a check was added if the destination file is under a destination directory. However, it is not enforced that `_baseDirectory…
- 9.8CVE-2021-32840sharpziplib project sharpziplibEPSS 2.0%
SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Prior to version 1.3.3, a TAR file entry `../evil.txt` may be extracted in the parent directory of `destFolder`. This leads to arbitrary file write that may lead to code execu…
- 5.3CVE-2022-22932apache karafEPSS 2.8%
Apache Karaf obr:* commands and run goal on the karaf-maven-plugin have partial path traversal which allows to break out of expected folder. The risk is low as obr:* commands are not very used and the entry is set by user. This has been fi…
- 9.8CVE-2020-17383telosalliance z\/ip one firmwareEPSS 4.4%
A directory traversal vulnerability on Telos Z/IP One devices through 4.0.0r grants an unauthenticated individual root level access to the device's file system. This can be used to identify configuration settings, password hashes for built…
- 7.5CVE-2021-23631convert-svg-core project convert-svg-coreEPSS 2.0%
This affects all versions of package convert-svg-core; all versions of package convert-svg-to-png; all versions of package convert-svg-to-jpeg. Using a specially crafted SVG file, an attacker could read arbitrary files from the file system…
- 7.5CVE-2020-19858plutinosoft platinumEPSS 1.8%
Platinum Upnp SDK through 1.2.0 has a directory traversal vulnerability. The attack could remote attack victim by sending http://ip:port/../privacy.avi URL to compromise a victim's privacy.
- 7.5CVE-2022-23119trendmicro deep security agentEPSS 21%
A directory traversal vulnerability in Trend Micro Deep Security and Cloud One - Workload Security Agent for Linux version 20 and below could allow an attacker to read arbitrary files from the file system. Please note: an attacker must fir…
- 8.8CVE-2021-44737lexmarkEPSS 1.5%
PJL directory traversal vulnerability in Lexmark devices through 2021-12-07 that can be leveraged to overwrite internal configuration files.
- 6.5CVE-2021-46203taogogo taocmsEPSS 1.1%
Taocms v3.0.2 was discovered to contain an arbitrary file read vulnerability via the path parameter.
- 7.5CVE-2021-46104webp server goEPSS 4.8%
An issue was discovered in webp_server_go 0.4.0. There is a directory traversal vulnerability that can read arbitrary file information on the server.
- 7.5CVE-2022-21371oracle weblogic serverExploitEPSS 93%
Vulnerability in the Oracle WebLogic Server product of Oracle Fusion Middleware (component: Web Container). Supported versions that are affected are 12.1.3.0.0, 12.2.1.3.0, 12.2.1.4.0 and 14.1.1.0.0. Easily exploitable vulnerability allows…
- 6.5CVE-2022-21693onionshareEPSS 1.2%
OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. In affected versions an adversary with a primitive that allows for filesystem access from the…
- 6.5CVE-2022-22054asus rt-ax56u firmwareEPSS 0.5%
ASUS RT-AX56U’s login function contains a path traversal vulnerability due to its inadequate filtering for special characters in URL parameters, which allows an unauthenticated local area network attacker to access restricted system paths …
- 6.5CVE-2022-21682EPSS 1.8%
Flatpak is a Linux application sandboxing and distribution framework. A path traversal vulnerability affects versions of Flatpak prior to 1.12.3 and 1.10.6. flatpak-builder applies `finish-args` last in the build. At this point the build d…
- 7.5CVE-2021-23514crowcpp crowEPSS 1.6%
This affects the package Crow before 0.3+4. It is possible to traverse directories to fetch arbitrary files from the server.
- 4.3CVE-2022-23113jenkins publish over sshEPSS 1.6%
Jenkins Publish Over SSH Plugin 1.22 and earlier performs a validation of the file name specifying whether it is present or not, resulting in a path traversal vulnerability allowing attackers with Item/Configure permission to discover the …
- 8.1CVE-2022-23107jenkins warnings next generationEPSS 1.9%
Jenkins Warnings Next Generation Plugin 9.10.2 and earlier does not restrict the name of a file when configuring custom ID, allowing attackers with Item/Configure permission to write and read specific files with a hard-coded suffix on the …
- 7.8CVE-2022-21675bytecode viewer project bytecode viewerEPSS 3.2%
Bytecode Viewer (BCV) is a Java/Android reverse engineering suite. Versions of the package prior to 2.11.0 are vulnerable to Arbitrary File Write via Archive Extraction (AKA "Zip Slip"). The vulnerability is exploited using a specially cra…
- 5.3CVE-2021-28377chronoengine chronoforumsEPSS 8.5%
ChronoForums 2.0.11 allows av Directory Traversal to read arbitrary files.
- 2.7CVE-2021-28376chronoengine chronoforumsEPSS 1.1%
ChronoForms 7.0.7 allows fname Directory Traversal to read arbitrary files.
- 6.5CVE-2021-37196siemens comosEPSS 0.8%
A vulnerability has been identified in COMOS V10.2 (All versions only if web components are used), COMOS V10.3 (All versions < V10.3.3.3 only if web components are used), COMOS V10.3 (All versions >= V10.3.3.3 only if web components are us…
- 7.5CVE-2021-44586dst-admin project dst-adminEPSS 1.4%
An issue was discovered in dst-admin v1.3.0. The product has an unauthorized arbitrary file download vulnerability that can expose sensitive information.
- 6.5CVE-2022-22836coreftp core ftpExploitEPSS 5.4%
CoreFTP Server before 727 allows directory traversal (for file creation) by an authenticated attacker via ../ in an HTTP PUT request.
- 4.4CVE-2022-22821nvidia nemoEPSS 0.3%
NVIDIA NeMo before 1.6.0 contains a vulnerability in ASR WebApp, in which ../ Path Traversal may lead to deletion of any directory when admin privileges are available.
- 5.3CVE-2021-40003huawei harmonyosEPSS 0.7%
HwPCAssistant has a path traversal vulnerability. Successful exploitation of this vulnerability may affect data confidentiality.
- 5.3CVE-2021-40001huawei harmonyosEPSS 0.8%
The CaasKit module has a path traversal vulnerability. Successful exploitation of this vulnerability may cause the MeeTime application to be unavailable.
- 7.5CVE-2020-29050EPSS 2.2%
SphinxSearch in Sphinx Technologies Sphinx through 3.1.1 allows directory traversal (in conjunction with CVE-2019-14511) because the mysql client can be used for CALL SNIPPETS and load_file operations on a full pathname (e.g., a file in th…
- 7.5CVE-2021-44351naviwebs navigate cmsEPSS 1.8%
An arbitrary file read vulnerability exists in NavigateCMS 2.9 via /navigate/navigate_download.php id parameter.
- 5.3CVE-2021-45452EPSS 2.6%
Storage.save in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1 allows directory traversal if crafted filenames are directly passed to it.
- 7.1CVE-2021-39143linuxfoundation spinnakerEPSS 0.4%
Spinnaker is an open source, multi-cloud continuous delivery platform. A path traversal vulnerability was discovered in uses of TAR files by AppEngine for deployments. This uses a utility to extract files locally for deployment without val…
- 9.1CVE-2021-40525apache jamesEPSS 3.8%
Apache James ManagedSieve implementation alongside with the file storage for sieve scripts is vulnerable to path traversal, allowing reading and writing any file. This vulnerability had been patched in Apache James 3.6.1 and higher. We rec…
- 7.5CVE-2021-39970huawei harmonyosEPSS 0.7%
HwPCAssistant has a Improper Input Validation vulnerability.Successful exploitation of this vulnerability may create any file with the system app permission.
- 9.8CVE-2021-37128huawei harmonyosEPSS 0.9%
HwPCAssistant has a Path Traversal vulnerability .Successful exploitation of this vulnerability may write any file.
- 7.5CVE-2021-37126huawei harmonyosEPSS 0.9%
Arbitrary file has a Exposure of Sensitive Information to an Unauthorized Actor vulnerability .Successful exploitation of this vulnerability may cause the directory is traversed.
- 6.5CVE-2021-44674opmantek open-auditEPSS 1.1%
An information exposure issue has been discovered in Opmantek Open-AudIT 4.2.0. The vulnerability allows an authenticated attacker to read file outside of the restricted directory.
- 4.9CVE-2021-25021ffw optimize my google fontsEPSS 1.1%
The OMGF | Host Google Fonts Locally WordPress plugin before 4.5.12 does not validate the cache directory setting, allowing high privilege users to use a path traversal vector and delete arbitrary folders when uninstalling the plugin
- 4.9CVE-2021-25020daan complete analytics optimization suiteEPSS 1.1%
The CAOS | Host Google Analytics Locally WordPress plugin before 4.1.9 does not validate the cache directory setting, allowing high privilege users to use a path traversal vector and delete arbitrary folders when uninstalling the plugin