CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path traversal), published in 2023, page 5
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
- 4.3CVE-2023-40026argoproj argo cdEPSS 0.6%
Argo CD is a declarative continuous deployment framework for Kubernetes. In Argo CD versions prior to 2.3 (starting at least in v0.1.0, but likely in any version using Helm before 2.3), using a specifically-crafted Helm file could referenc…
- 9.8CVE-2023-44172seacmsEPSS 1.4%
SeaCMS V12.9 was discovered to contain an arbitrary file write vulnerability via the component admin_weixin.php.
- 9.8CVE-2023-44171seacmsEPSS 1.4%
SeaCMS V12.9 was discovered to contain an arbitrary file write vulnerability via the component admin_smtp.php.
- 9.8CVE-2023-44170seacmsEPSS 1.4%
SeaCMS V12.9 was discovered to contain an arbitrary file write vulnerability via the component admin_ping.php.
- 9.8CVE-2023-44169seacmsEPSS 1.4%
SeaCMS V12.9 was discovered to contain an arbitrary file write vulnerability via the component admin_notify.php.
- 7.8CVE-2023-43825ekakin shihonkanri plusEPSS 0.3%
Relative path traversal vulnerability in Shihonkanri Plus Ver9.0.3 and earlier allows a local attacker to execute an arbitrary code by having a legitimate user import a specially crafted backup file of the product..
- 9.8CVE-2023-43216seacmsEPSS 1.4%
SeaCMS V12.9 was discovered to contain an arbitrary file write vulnerability via the component admin_ip.php.
- 8.8CVE-2023-42819fit2cloud jumpserverEPSS 2.2%
JumpServer is an open source bastion host. Logged-in users can access and modify the contents of any file on the system. A user can use the 'Job-Template' menu and create a playbook named 'test'. Get the playbook id from the detail page, l…
- 9.6CVE-2023-42657progress ws ftp serverEPSS 16%
In WS_FTP Server versions prior to 8.7.4 and 8.8.2, a directory traversal vulnerability was discovered. An attacker could leverage this vulnerability to perform file operations (delete, rename, rmdir, mkdir) on files and folders outside o…
- 7.5CVE-2023-42487soundminerEPSS 1.0%
Soundminer – CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- 9.1CVE-2023-42462glpi-project glpiEPSS 1.3%
GLPI stands for Gestionnaire Libre de Parc Informatique is a Free Asset and IT Management Software package, that provides ITIL Service Desk features, licenses tracking and software auditing. The document upload process can be diverted to d…
- 5.4CVE-2023-41888glpi-project glpiEPSS 0.5%
GLPI stands for Gestionnaire Libre de Parc Informatique is a Free Asset and IT Management Software package, that provides ITIL Service Desk features, licenses tracking and software auditing. The lack of path filtering on the GLPI URL may a…
- 4.3CVE-2023-40532collne welcartEPSS 0.7%
Path traversal vulnerability in Welcart e-Commerce versions 2.7 to 2.8.21 allows a user with author or higher privilege to obtain partial information of the files on the web server.
- 8.8CVE-2023-2315opencartEPSS 1.0%
Path Traversal in OpenCart versions 4.0.0.0 to 4.0.2.2 allows an authenticated user with access/modify privilege on the Log component to empty out arbitrary files on the server
- 7.5CVE-2022-4244EPSS 1.3%
A flaw was found in codeplex-codehaus. A directory traversal attack (also known as path traversal) aims to access files and directories stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and thei…
- 8.8CVE-2023-43382iteachyou dreamer cmsEPSS 1.8%
Directory Traversal vulnerability in itechyou dreamer CMS v.4.1.3 allows a remote attacker to execute arbitrary code via the themePath in the uploaded template function.
- 6.5CVE-2023-43256gladysassistant gladys assistantEPSS 0.8%
A path traversal in Gladys Assistant v4.26.1 and below allows authenticated attackers to extract sensitive files in the host machine by exploiting a non-sanitized user input.
- 7.5CVE-2023-41302huaweiEPSS 0.5%
Redirection permission verification vulnerability in the home screen module. Successful exploitation of this vulnerability may cause features to perform abnormally.
- 9.1CVE-2023-39407huawei harmonyosEPSS 0.5%
The Watchkit has a risk of unauthorized file access.Successful exploitation of this vulnerability may affect confidentiality and integrity.
- 5.3CVE-2023-5142h3cEPSS 2.7%
A vulnerability classified as problematic was found in H3C GR-1100-P, GR-1108-P, GR-1200W, GR-1800AX, GR-2200, GR-3200, GR-5200, GR-8300, ER2100n, ER2200G2, ER3200G2, ER3260G2, ER5100G2, ER5200G2 and ER6300G2 up to 20230908. This vulnerabi…
- 8.8CVE-2023-38346windriver vxworksEPSS 1.5%
An issue was discovered in Wind River VxWorks 6.9 and 7. The function ``tarExtract`` implements TAR file extraction and thereby also processes files within an archive that have relative or absolute file paths. A developer using the "tarExt…
- 7.5CVE-2023-42280springernature mee-adminEPSS 1.1%
mee-admin 1.5 is vulnerable to Directory Traversal. The download method in the CommonFileController.java file does not verify the incoming data, resulting in arbitrary file reading.
- 8.1CVE-2023-42456memorysafety sudoEPSS 0.6%
Sudo-rs, a memory safe implementation of sudo and su, allows users to not have to enter authentication at every sudo attempt, but instead only requiring authentication every once in a while in every terminal or process group. Only once a c…
- 9.8CVE-2023-4760eclipse remote application platformEPSS 1.2%
In Eclipse RAP versions from 3.0.0 up to and including 3.25.0, Remote Code Execution is possible on Windows when using the FileUpload component. The reason for this is a not completely secure extraction of the file name in the FileUp…
- 7.5CVE-2023-4152frauscher diagnostic system 101EPSS 1.0%
Frauscher Sensortechnik GmbH FDS101 for FAdC/FAdCi v1.4.24 and all previous versions are vulnerable to a path traversal vulnerability of the web interface by a crafted URL without authentication. This enables an remote attacker to read all…
- 9.8CVE-2015-5467yiiframework yiiEPSS 0.9%
web\ViewAction in Yii (aka Yii2) 2.x before 2.0.5 allows attackers to execute any local .php file via a relative path in the view parameeter.
- 6.8CVE-2023-40930skyworth osEPSS 1.3%
An issue in the directory /system/bin/blkid of Skyworth v3.0 allows attackers to perform a directory traversal via mounting the Udisk to /mnt/.
- 6.5CVE-2022-45447prestashop m4 pdfEPSS 0.9%
M4 PDF plugin for Prestashop sites, in its 3.2.3 version and before, is vulnerable to a directory traversal vulnerability. The “f” parameter is not properly checked in the resource /m4pdf/pdf.php, returning any file given its relative path…
- 5.5CVE-2023-43616schollz crocEPSS 0.4%
An issue was discovered in Croc through 9.6.5. A sender can cause a receiver to overwrite files during ZIP extraction.
- 5.3CVE-2023-41599jfinalcms project jfinalcmsEPSS 12%
An issue in the component /common/DownController.java of JFinalCMS v5.0.0 allows attackers to execute a directory traversal.
- 9.8CVE-2022-28357linuxfoundation nats-serverEPSS 1.2%
NATS nats-server 2.2.0 through 2.7.4 allows directory traversal because of an unintended path to a management action from a management account.
- 6.5CVE-2023-37739i-doitEPSS 1.3%
i-doit Pro v25 and below was discovered to be vulnerable to path traversal.
- 4.3CVE-2021-28485ericsson mobile switching center server bc 18a firmwareEPSS 0.7%
In Ericsson Mobile Switching Center Server (MSC-S) before IS 3.1 CP22, the SIS web application allows relative path traversal via a specific parameter in the https request after authentication, which allows access to files on the system th…
- 6.5CVE-2023-39916nlnetlabs routinatorEPSS 0.6%
NLnet Labs’ Routinator 0.9.0 up to and including 0.12.1 as well as 0.14.0 up to and including 0.14.2 contains a possible path traversal vulnerability in the optional, off-by-default keep-rrdp-responses feature that allows users to store th…
- 7.5CVE-2023-4914cecilEPSS 0.9%
Relative Path Traversal in GitHub repository cecilapp/cecil prior to 7.47.1.
- 7.5CVE-2023-32558nodejs node.jsEPSS 1.7%
The use of the deprecated API `process.binding()` can bypass the permission model through path traversal. This vulnerability affects all users using the experimental permission model in Node.js 20.x. Please note that at the time this CV…
- 7.8CVE-2023-35670google androidEPSS 0.1%
In computeValuesFromData of FileUtils.java, there is a possible way to insert files to other apps' external private directories due to a path traversal error. This could lead to local escalation of privilege with no additional execution pr…
- 7.5CVE-2023-38256doverfuelingsolutions maglink lx web console configurationEPSS 0.7%
Dover Fueling Solutions MAGLINK LX Web Console Configuration versions 2.5.1, 2.5.2, 2.5.3, 2.6.1, 2.11, 3.0, 3.2, and 3.3 vulnerable to a path traversal attack, which could allow an attacker to access files stored on the system.
- 9.1CVE-2022-33164ibm security directory serverEPSS 1.5%
IBM Security Directory Server 7.2.0 could allow a remote attacker to traverse directories on the system. An attacker could send a specially crafted URL request containing "dot dot" sequences (/../) to view or write to arbitrary files on th…
- 7.5CVE-2023-41578jeecg bootEPSS 0.9%
Jeecg boot up to v3.5.3 was discovered to contain an arbitrary file read vulnerability via the interface /testConnection.
- 7.8CVE-2023-4782hashicorp terraformEPSS 0.3%
Terraform version 1.0.8 through 1.5.6 allows arbitrary file write during the `init` operation if run on maliciously crafted Terraform configuration. This vulnerability is fixed in Terraform 1.5.7.
- 7.5CVE-2023-40924contec solarview compact firmwareEPSS 3.2%
SolarView Compact < 6.00 is vulnerable to Directory Traversal.
- 7.5CVE-2023-39584hexoEPSS 35%
Hexo up to v7.0.0 (RC2) was discovered to contain an arbitrary file read vulnerability.
- 7.8CVE-2021-35980adobeEPSS 0.4%
Acrobat Reader DC versions 2021.005.20054 (and earlier), 2020.004.30005 (and earlier) and 2017.011.30197 (and earlier) are affected by a Path traversal vulnerability. An unauthenticated attacker could leverage this vulnerability to achieve…
- 7.8CVE-2021-28644adobeEPSS 0.4%
Acrobat Reader DC versions 2021.005.20054 (and earlier), 2020.004.30005 (and earlier) and 2017.011.30197 (and earlier) are affected by a Path traversal vulnerability. An unauthenticated attacker could leverage this vulnerability to achieve…
- 4.3CVE-2023-41930jenkins job configuration historyEPSS 0.9%
Jenkins Job Configuration History Plugin 1227.v7a_79fc4dc01f and earlier does not restrict the 'name' query parameter when rendering a history entry, allowing attackers to have Jenkins render a manipulated configuration history that was no…
- 5.5CVE-2023-4480php-fusion phpfusionEPSS 0.7%
Due to an out-of-date dependency in the “Fusion File Manager” component accessible through the admin panel, an attacker can send a crafted request that allows them to read the contents of files on the system accessible within the privilege…
- 8.8CVE-2023-39448ss-proj shirasagiEPSS 1.3%
Path traversal vulnerability in SHIRASAGI prior to v1.18.0 allows a remote authenticated attacker to alter or create arbitrary files on the server, resulting in arbitrary code execution.
- 7.5CVE-2023-4748yonyou ufida-ncEPSS 0.9%
A vulnerability, which was classified as critical, has been found in Yongyou UFIDA-NC up to 20230807. This issue affects some unknown processing of the file PrintTemplateFileServlet.java. The manipulation of the argument filePath leads to …
- 5.5CVE-2023-41057plannigan hyper bump itEPSS 0.4%
hyper-bump-it is a command line tool for updating the version in project files.`hyper-bump-it` reads a file glob pattern from the configuration file. That is combined with the project root directory to construct a full glob pattern that is…