CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path traversal), published in 2023, 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
- 7.5CVE-2023-36301talend data catalogEPSS 0.9%
Talend Data Catalog before 8.0-20230221 contain a directory traversal vulnerability in HeaderImageServlet.
- 7.8CVE-2023-25307mrpack-install project mrpack-installEPSS 0.6%
nothub mrpack-install <= v0.16.2 is vulnerable to Directory Traversal.
- 7.5CVE-2023-25306multimcEPSS 1.1%
MultiMC Launcher <= 0.6.16 is vulnerable to Directory Traversal.
- 7.5CVE-2023-36612basecampEPSS 1.1%
Directory traversal can occur in the Basecamp com.basecamp.bc3 application before 4.2.1 for Android, which may allow an attacker to write arbitrary files in the application's private directory. Additionally, by using a malicious intent, th…
- 9.8CVE-2023-35169webklex php-imapEPSS 3.2%
PHP-IMAP is a wrapper for common IMAP communication without the need to have the php-imap module installed / enabled. Prior to version 5.3.0, an unsanitized attachment filename allows any unauthenticated user to leverage a directory traver…
- 8.1CVE-2023-35801safe fme serverEPSS 1.5%
A directory traversal vulnerability in Safe Software FME Server before 2022.2.5 allows an attacker to bypass validation when editing a network-based resource connection, resulting in the unauthorized reading and writing of arbitrary files.…
- 9.8CVE-2023-34939onlyofficeEPSS 5.0%
Onlyoffice Community Server before v12.5.2 was discovered to contain a remote code execution (RCE) vulnerability via the component UploadProgress.ashx.
- 7.5CVE-2023-35843nocodbEPSS 8.9%
NocoDB through 0.106.0 (or 0.109.1) has a path traversal vulnerability that allows an unauthenticated attacker to access arbitrary files on the server by manipulating the path parameter of the /download route. This vulnerability could allo…
- 7.5CVE-2023-35852oisf suricataEPSS 1.1%
In Suricata before 6.0.13 (when there is an adversary who controls an external source of rules), a dataset filename, that comes from a rule, may trigger absolute or relative directory traversal, and lead to write access to a local filesyst…
- 7.5CVE-2023-35844lightdashEPSS 6.3%
packages/backend/src/routers in Lightdash before 0.510.3 has insecure file endpoints, e.g., they allow .. directory traversal and do not ensure that an intended file extension (.csv or .png) is used.
- 6.5CVE-2023-35840std42 elfinderEPSS 1.9%
_joinPath in elFinderVolumeLocalFileSystem.class.php in elFinder before 2.1.62 allows path traversal in the PHP LocalVolumeDriver connector.
- 2.8CVE-2023-25186nokia asika airscale firmwareEPSS 0.2%
An issue was discovered on NOKIA Airscale ASIKA Single RAN devices before 21B. If/when CSP (as a BTS administrator) removes security hardenings from a Nokia Single RAN BTS baseband unit, a directory path traversal in the Nokia BTS baseband…
- 7.5CVE-2023-34645jflyfox jfinal cmsEPSS 0.8%
jfinal CMS 5.1.0 has an arbitrary file read vulnerability.
- 9.8CVE-2023-34880cmseasyEPSS 1.1%
cmseasy v7.7.7.7 20230520 was discovered to contain a path traversal vulnerability via the add_action method at lib/admin/language_admin.php. This vulnerability allows attackers to execute arbitrary code and perform a local file inclusion.
- 7.8CVE-2023-2270netskopeEPSS 0.3%
The Netskope client service running with NT\SYSTEM privileges accepts network connections from localhost to start various services and execute commands. The connection handling function of Netskope client before R100 in this service utiliz…
- 9.8CVE-2023-34865ujcmsEPSS 1.2%
Directory traversal vulnerability in ujcms 6.0.2 allows attackers to move files via the rename feature.
- 7.5CVE-2023-3241otcmsEPSS 1.0%
A vulnerability was found in OTCMS up to 6.62 and classified as problematic. Affected by this issue is some unknown functionality of the file /admin/read.php?mudi=announContent. The manipulation of the argument url leads to path traversal.…
- 2.7CVE-2022-42474fortinetEPSS 0.6%
A relative path traversal vulnerability [CWE-23] in Fortinet FortiOS version 7.2.0 through 7.2.3, version 7.0.0 through 7.0.9 and before 6.4.12, FortiProxy version 7.2.0 through 7.2.1 and 7.0.0 through 7.0.7, FortiSwitchManager version 7.2…
- 9.8CVE-2023-2278wpdirectorykit wp directory kitEPSS 1.7%
The WP Directory Kit plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 1.1.9 via the 'wdk_public_action' function. This allows unauthenticated attackers to include and execute arbitrary files on t…
- 9.1CVE-2023-34342ami megarac sp-xEPSS 0.5%
AMI BMC contains a vulnerability in the IPMI handler, where an attacker can upload and download arbitrary files under certain circumstances, which may lead to denial of service, escalation of privileges, information disclosure, or data tam…
- 6.5CVE-2023-34345ami megarac sp-xEPSS 0.7%
AMI BMC contains a vulnerability in the SPX REST API, where an attacker with the required privileges can access arbitrary files, which may lead to information disclosure.
- 7.5CVE-2023-30198webbax winbizpaymentExploitEPSS 5.5%
Prestashop winbizpayment <= 1.0.2 is vulnerable to Incorrect Access Control via modules/winbizpayment/downloads/download.php.
- 4.9CVE-2023-2688iptanusEPSS 1.7%
The WordPress File Upload and WordPress File Upload Pro plugins for WordPress are vulnerable to Path Traversal in versions up to, and including, 4.19.1 via the vulnerable parameter wfu_newpath. This allows administrator-level attackers to …
- 7.2CVE-2023-3172froxlorEPSS 1.2%
Path Traversal in GitHub repository froxlor/froxlor prior to 2.0.20.
- 8.8CVE-2023-34096thrukExploitEPSS 63%
Thruk is a multibackend monitoring webinterface which currently supports Naemon, Icinga, Shinken and Nagios as backends. In versions 3.06 and prior, the file `panorama.pm` is vulnerable to a Path Traversal vulnerability which allows an att…
- 5.3CVE-2023-34238gatsbyjs gatsbyEPSS 0.9%
Gatsby is a free and open source framework based on React. The Gatsby framework prior to versions 4.25.7 and 5.9.1 contain a Local File Inclusion vulnerability in the `__file-code-frame` and `__original-stack-frame` paths, exposed when run…
- 4.3CVE-2023-29502ptc vuforia studioEPSS 0.5%
Before importing a project into Vuforia, a user could modify the “resourceDirectory” attribute in the appConfig.json file to be a different path.
- 7.5CVE-2023-1864fanuc roboguide handlingpro firmwareEPSS 0.9%
FANUC ROBOGUIDE-HandlingPRO Versions 9 Rev.ZD and prior is vulnerable to a path traversal, which could allow an attacker to remotely read files on the system running the affected software.
- 7.5CVE-2023-33510jeecg p3 biz chat project jeecg p3 biz chatEPSS 4.1%
Jeecg P3 Biz Chat 1.0.5 allows remote attackers to read arbitrary files through specific parameters.
- 9.8CVE-2020-36728tunasite adning advertisingEPSS 3.1%
The Adning Advertising plugin for WordPress is vulnerable to file deletion via path traversal in versions up to, and including, 1.5.5. This allows unauthenticated attackers to delete arbitrary files which can be used to reset and gain full…
- 9.8CVE-2023-34409percona monitoring and managementEPSS 1.3%
In Percona Monitoring and Management (PMM) server 2.x before 2.37.1, the authenticate function in auth_server.go does not properly formalize and sanitize URL paths to reject path traversal attempts. This allows an unauthenticated remote us…
- 7.8CVE-2023-33747mgt-commerce cloudpanelEPSS 0.5%
CloudPanel v2.2.2 allows attackers to execute a path traversal.
- 5.3CVE-2023-33524advent tamale rmsEPSS 1.0%
Advent/SSC Inc. Tamale RMS < 23.1 is vulnerable to Directory Traversal. If one traverses to the affected URL, one enumerates Contact information on the host which contains usernames, e-mail addresses, and other internal information stored …
- 6.5CVE-2023-33690sonicjsEPSS 0.9%
SonicJS up to v0.7.0 allows attackers to execute an authenticated path traversal when an attacker injects special characters into the filename of a backup CMS.
- 7.8CVE-2023-3098ubuntukylin youker-assistantEPSS 0.7%
A vulnerability classified as critical has been found in KylinSoft youker-assistant on KylinOS. Affected is the function restore_all_sound_file. The manipulation leads to path traversal: '../filedir'. Attacking locally is a requirement. Th…
- 7.5CVE-2023-34407harbingergroup office playerEPSS 1.1%
OfflinePlayerService.exe in Harbinger Offline Player 4.0.6.0.2 allows directory traversal as LocalSystem via ..\ in a URL.
- 6.5CVE-2023-28163mozillaEPSS 0.8%
When downloading files through the Save As dialog on Windows with suggested filenames containing environment variable names, Windows would have resolved those in the context of the current user. <br>*This bug only affects Firefox on Window…
- 4.3CVE-2023-25750mozilla firefoxEPSS 0.5%
Under certain circumstances, a ServiceWorker's offline cache may have leaked to the file system when using private browsing mode. This vulnerability affects Firefox < 111.
- 4.9CVE-2023-3031webbax king-avisEPSS 0.8%
Improper Limitation of a Pathname leads to a Path Traversal vulnerability in the module King-Avis for Prestashop, allowing a user knowing the download token to read arbitrary local files.This issue affects King-Avis: before 17.3.15.
- 9.8CVE-2023-29736timmystudios keyboard themesEPSS 1.2%
Keyboard Themes 1.275.1.164 for Android contains a dictionary traversal vulnerability that allows unauthorized apps to overwrite arbitrary files in its internal storage and achieve arbitrary code execution.
- 7.5CVE-2023-27640tshirtecommerce custom product designerEPSS 3.6%
An issue was discovered in the tshirtecommerce (aka Custom Product Designer) component 2.1.4 for PrestaShop. An HTTP request can be forged with the POST parameter type in the /tshirtecommerce/fonts.php endpoint, to allow a remote attacker …
- 7.5CVE-2023-27639tshirtecommerce custom product designerEPSS 3.6%
An issue was discovered in the tshirtecommerce (aka Custom Product Designer) component 2.1.4 for PrestaShop. An HTTP request can be forged with the POST parameter file_name in the tshirtecommerce/ajax.php?type=svg endpoint, to allow a remo…
- 8.1CVE-2023-32714splunkEPSS 43%
In the Splunk App for Lookup File Editing versions below 4.0.1, a low-privileged user can, with a specially crafted web request, trigger a path traversal exploit that can then be used to read and write to restricted areas of the Splunk ins…
- 5.5CVE-2023-33544hawt hawtioEPSS 0.3%
hawtio 2.17.2 is vulnerable to Path Traversal. it is possible to input malicious zip files, which can result in the high-risk files after decompression being stored in any location, even leading to file overwrite.
- 7.5CVE-2023-29159encode starletteEPSS 2.6%
Directory traversal vulnerability in Starlette versions 0.13.5 and later and prior to 0.27.0 allows a remote unauthenticated attacker to view files in a web service which was built using Starlette.
- 10.0CVE-2023-2909asustor admEPSS 0.7%
EZ Sync service fails to adequately handle user input, allowing an attacker to navigate beyond the intended directory structure and delete files. Affected products and versions include: ADM 4.0.6.REG2, 4.1.0 and below as well as ADM 4.2.1.…
- 7.2CVE-2023-2435blog-in-blog project blog-in-blogEPSS 1.1%
The Blog-in-Blog plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 2.0.0 via a shortcode attribute. This allows editor-level, and above, attackers to include and execute arbitrary files on the ser…
- 7.5CVE-2023-30197webbax myinventoryEPSS 0.7%
Incorrect Access Control in the module "My inventory" (myinventory) <= 1.6.6 from Webbax for PrestaShop, allows a guest to download personal information without restriction by performing a path traversal attack.
- 7.1CVE-2023-28344faronics insightEPSS 0.9%
An issue was discovered in Faronics Insight 10.0.19045 on Windows. The Insight Teacher Console application allows unauthenticated attackers to view constantly updated screenshots of student desktops and to submit falsified screenshots on b…
- 9.8CVE-2022-47526fox-it fox datadiode firmwareEPSS 1.3%
Fox-IT DataDiode (aka Fox DataDiode) 3.4.3 suffers from a path traversal vulnerability with resultant arbitrary writing of files. A remote attacker could leverage this vulnerability to achieve arbitrary code execution in the context of the…