CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path traversal), published in 2022, page 7
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.8CVE-2022-2184wpwhitesecurity captcha 4wpEPSS 0.6%
The CAPTCHA 4WP WordPress plugin before 7.1.0 lets user input reach a sensitive require_once call in one of its admin-side templates. This can be abused by attackers, via a Cross-Site Request Forgery attack to run arbitrary code on the ser…
- 9.8CVE-2021-22650ovarroEPSS 1.4%
An attacker may use TWinSoft and a malicious source project file (TPG) to extract files on machine executing Ovarro TWinSoft, which could lead to code execution.
- 8.1CVE-2022-27611synology audio stationEPSS 1.0%
Improper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in webapi component in Synology Audio Station before 6.5.4-3367 allows remote authenticated users to delete arbitrary files via unspecified vector…
- 8.1CVE-2022-22685synology webdav serverEPSS 1.3%
Improper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in webapi component in Synology WebDAV Server before 2.4.0-0062 allows remote authenticated users to delete arbitrary files via unspecified vector…
- 8.1CVE-2022-27615synology dns serverEPSS 1.2%
Improper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in cgi component in Synology DNS Server before 2.2.2-5027 allows remote authenticated users to delete arbitrary files via unspecified vectors.
- 6.5CVE-2021-46830helpsystems goanywhere managed file transferEPSS 1.1%
A path traversal vulnerability exists within GoAnywhere MFT before 6.8.3 that utilize self-registration for the GoAnywhere Web Client. This vulnerability could potentially allow an external user who self-registers with a specific username …
- 4.3CVE-2022-36890jenkins deployer frameworkEPSS 1.2%
Jenkins Deployer Framework Plugin 85.v1d1888e8c021 and earlier does not restrict the name of files in methods implementing form validation, allowing attackers with Item/Read permission to check for the existence of an attacker-specified fi…
- 8.8CVE-2022-36889jenkins deployer frameworkEPSS 1.7%
Jenkins Deployer Framework Plugin 85.v1d1888e8c021 and earlier does not restrict the application path of the applications when configuring a deployment, allowing attackers with Item/Configure permission to upload arbitrary files from the J…
- 6.5CVE-2022-34551sims project simsEPSS 1.1%
Sims v1.0 was discovered to allow path traversal when downloading attachments.
- 8.1CVE-2022-27610synology diskstation managerEPSS 1.6%
Improper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in webapi component in Synology DiskStation Manager (DSM) before 6.2.3-25423 allows remote authenticated users to delete arbitrary files via unspe…
- 7.2CVE-2022-1648pandorafms pandora fmsEPSS 1.4%
Pandora FMS v7.0NG.760 and below allows a relative path traversal in File Manager where a privileged user could upload a .php file outside the intended images directory which is restricted to execute the .php file. The impact could lead to…
- 7.5CVE-2022-24992qr code generator project qr code generatorEPSS 1.5%
A vulnerability in the component process.php of QR Code Generator v5.2.7 allows attackers to perform directory traversal.
- 7.5CVE-2022-35650EPSS 54%
The vulnerability was found in Moodle, occurs due to input validation error when importing lesson questions. This insufficient path checks results in arbitrary file read risk. This vulnerability allows a remote attacker to perform director…
- 4.9CVE-2020-7649snyk brokerEPSS 1.6%
This affects the package snyk-broker before 4.73.0. It allows arbitrary file reads for users with access to Snyk's internal network via directory traversal.
- 9.8CVE-2017-20145tecrail responsive filemanagerEPSS 1.1%
A vulnerability was found in Tecrail Responsive Filemanger up to 9.10.x and classified as critical. The manipulation leads to path traversal. The attack may be launched remotely. The exploit has been disclosed to the public and may be used…
- 6.5CVE-2022-1128google chromeEPSS 0.7%
Inappropriate implementation in Web Share API in Google Chrome on Windows prior to 100.0.4896.60 allowed an attacker on the local network segment to leak cross-origin data via a crafted HTML page.
- 9.8CVE-2022-2139advantech iviewEPSS 16%
The affected product is vulnerable to directory traversal, which may allow an attacker to access unauthorized files and execute arbitrary code.
- 8.1CVE-2022-31163EPSS 2.4%
TZInfo is a Ruby library that provides access to time zone data and allows times to be converted using time zone rules. Versions prior to 0.36.1, as well as those prior to 1.2.10 when used with the Ruby data source tzinfo-data, are vulnera…
- 4.9CVE-2022-31475givewpEPSS 0.9%
Authenticated (custom plugin role) Arbitrary File Read via Export function vulnerability in GiveWP's GiveWP plugin <= 2.20.2 at WordPress.
- 9.8CVE-2022-0902abbEPSS 16%
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability in flow computer and remote controller products of ABB ( RMC-…
- 7.5CVE-2022-29834iconics genesis64EPSS 1.8%
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Mitsubishi Electric GENESIS64 versions 10.97 to 10.97.1, Mitsubishi Electric Iconics Digital Solutions GENESIS64 versions 10.97 to 10.97.1, Mit…
- 8.8CVE-2022-1264inductiveautomation ignitionEPSS 1.0%
The affected product may allow an attacker with access to the Ignition web configuration to run arbitrary code.
- 7.5CVE-2022-24659goldshell miner firmwareEPSS 1.6%
Goldshell ASIC Miners v2.2.1 and below was discovered to contain a path traversal vulnerability which allows unauthenticated attackers to retrieve arbitrary files from the device.
- 8.1CVE-2022-30302fortinet fortideceptorEPSS 1.0%
Multiple relative path traversal vulnerabilities [CWE-23] in FortiDeceptor management interface 1.0.0 through 3.2.x, 3.3.0 through 3.3.2, 4.0.0 through 4.0.1 may allow a remote and authenticated attacker to retrieve and delete arbitrary fi…
- 6.7CVE-2022-30301fortinet fortiap-uEPSS 0.2%
A path traversal vulnerability [CWE-22] in FortiAP-U CLI 6.2.0 through 6.2.3, 6.0.0 through 6.0.4, 5.4.0 through 5.4.6 may allow an admin user to delete and access unauthorized files and data via specifically crafted CLI commands.
- 6.5CVE-2022-2030zyxelEPSS 1.4%
A directory traversal vulnerability caused by specific character sequences within an improperly sanitized URL was identified in some CGI programs of Zyxel USG FLEX 100(W) firmware versions 4.50 through 5.30, USG FLEX 200 firmware versions …
- 7.8CVE-2021-41031fortinet forticlientEPSS 0.5%
A relative path traversal vulnerability [CWE-23] in FortiClient for Windows versions 7.0.2 and prior, 6.4.6 and prior and 6.2.9 and below may allow a local unprivileged attacker to escalate their privileges to SYSTEM via the named pipe res…
- 6.5CVE-2022-31202monitoringsoft softguard webEPSS 1.3%
The export function in SoftGuard Web (SGW) before 5.1.5 allows directory traversal to read an arbitrary local file via export or man.tcl.
- 7.8CVE-2022-35861pyenvEPSS 0.3%
pyenv 1.2.24 through 2.3.2 allows local users to gain privileges via a .python-version file in the current working directory. An attacker can craft a Python version string in .python-version to execute shims under their control. (Shims are…
- 6.5CVE-2022-31159amazon aws-sdk-javaEPSS 1.6%
The AWS SDK for Java enables Java developers to work with Amazon Web Services. A partial-path traversal issue exists within the `downloadDirectory` method in the AWS S3 TransferManager component of the AWS SDK for Java v1 prior to version …
- 9.8CVE-2022-32409softwarepublico i3geoEPSS 14%
A local file inclusion (LFI) vulnerability in the component codemirror.php of Portal do Software Publico Brasileiro i3geo v7.0.5 allows attackers to execute arbitrary PHP code via a crafted HTTP request.
- 7.5CVE-2022-34762schneider-electricEPSS 0.7%
A CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability exists that could cause unauthorized firmware image loading when unsigned images are added to the firmware image path. Affected Products…
- 7.8CVE-2022-20220google androidEPSS 0.2%
In openFile of CallLogProvider.java, there is a possible permission bypass due to a path traversal error. This could lead to local escalation of privilege with User execution privileges needed. User interaction is not needed for exploitati…
- 3.3CVE-2022-33690google androidEPSS 0.1%
Improper input validation in Contacts Storage prior to SMR Jul-2022 Release 1 allows attacker to access arbitrary file.
- 9.3CVE-2022-31588testplatform project testplatformEPSS 1.3%
The zippies/testplatform repository through 2016-07-19 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31587kg-fashion-chatbot project kg-fashion-chatbotEPSS 1.3%
The yuriyouzhou/KG-fashion-chatbot repository through 2018-05-22 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31586changepop-back project changepop-backEPSS 1.3%
The unizar-30226-2019-06/ChangePop-Back repository through 2019-06-04 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31585home internet project home internetEPSS 1.3%
The umeshpatil-dev/Home__internet repository through 2020-08-28 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31584s3label project s3labelEPSS 1.4%
The stonethree/s3label repository through 2019-08-14 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31583automatedquizeval project automatedquizevalEPSS 1.4%
The sravaniboinepelli/AutomatedQuizEval repository through 2020-04-27 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31582videoserver project videoserverEPSS 1.4%
The shaolo1/VideoServer repository through 2019-09-21 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31581scorelab openmfEPSS 1.6%
The scorelab/OpenMF repository before 2022-05-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31580caretakerr-api project caretakerr-apiEPSS 1.4%
The sanojtharindu/caretakerr-api repository through 2021-05-17 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31579iasset project iassetEPSS 1.3%
The ralphjzhang/iasset repository through 2022-05-04 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 7.5CVE-2022-31578bt lnmp project bt lnmpEPSS 1.3%
The piaoyunsoft/bt_lnmp repository through 2019-10-10 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31577audio aligner app project audio aligner appEPSS 1.3%
The longmaoteamtf/audio_aligner_app repository through 2020-01-10 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31576shackerpanel project shackerpanelEPSS 1.4%
The heidi-luong1109/shackerpanel repository through 2021-05-25 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31575livro python project livro pythonEPSS 1.4%
The duducosmos/livro_python repository through 2018-06-06 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31574realestate project realestateEPSS 1.4%
The deepaliupadhyay/RealEstate repository through 2018-11-30 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
- 9.3CVE-2022-31573chainer chainerrl-visualizerEPSS 1.4%
The chainer/chainerrl-visualizer repository through 0.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.