cve.bz

CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path traversal), published in 2022, page 14

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 promptExplain 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

  1. 8.1CVE-2022-25412max-3000 maxsite cmsEPSS 1.1%

    Maxsite CMS v180 was discovered to contain multiple arbitrary file deletion vulnerabilities in /admin_page/all-files-update-ajax.php via the dir and deletefile parameters.

  2. 5.3CVE-2022-26315qrcp project qrcpEPSS 1.2%

    qrcp through 0.8.4, in receive mode, allows ../ Directory Traversal via the file name specified by the uploader.

  3. 6.5CVE-2021-24820bold-themes cost calculatorEPSS 3.0%

    The Cost Calculator WordPress plugin through 1.6 allows authenticated users (Contributor+ in versions < 1.5, and Admin+ in versions <= 1.6) to perform path traversal and local PHP file inclusion on Windows Web Servers via the Cost Calculat…

  4. 4.9CVE-2021-24689wpeverest contact formEPSS 1.3%

    The Contact Forms - Drag & Drop Contact Form Builder WordPress plugin through 1.0.5 allows high privilege users to download arbitrary files from the web server via a path traversal attack

  5. 6.5CVE-2021-44665xerteExploitEPSS 7.7%

    A Directory Traversal vulnerability exists in the Xerte Project Xerte through 3.10.3 when downloading a project file via download.php.

  6. 8.8CVE-2021-44664xerteExploitEPSS 12%

    An Authenticated Remote Code Exection (RCE) vulnerability exists in Xerte through 3.9 in website_code/php/import/fileupload.php by uploading a maliciously crafted PHP file though the project interface disguised as a language file to bypass…

  7. 6.5CVE-2022-23135zteEPSS 1.4%

    There is a directory traversal vulnerability in some home gateway products of ZTE. Due to the lack of verification of user modified destination path, an attacker with specific permissions could modify the FTP access path to access and modi…

  8. 4.3CVE-2022-22349ibm sterling external authentication serverEPSS 1.0%

    IBM Sterling External Authentication Server 3.4.3.2, 6.0.2.0, and 6.0.3.0 is vulnerable to path traversals, due to not properly validating RESTAPI configuration data. An authorized user could import invalid data which could be used for an …

  9. 7.5CVE-2021-45746webank wecubeEPSS 1.5%

    A Directory Traversal vulnerability exists in WeBankPartners wecube-platform 3.2.1 via the file variable in PluginPackageController.java.

  10. 7.5CVE-2020-27467processwireEPSS 15%

    A Directory Traversal vulnerability exits in Processwire CMS before 2.7.1 via the download parameter to index.php.

  11. 7.5CVE-2022-23612openmrsEPSS 1.9%

    OpenMRS is a patient-based medical record system focusing on giving providers a free customizable electronic medical record system. Affected versions are subject to arbitrary file exfiltration due to failure to sanitize request when satisf…

  12. 6.5CVE-2022-0665pimcoreEPSS 1.5%

    Path Traversal in GitHub repository pimcore/pimcore prior to 10.3.2.

  13. 5.5CVE-2021-27755hcltech hcl sametimeEPSS 0.3%

    "Sametime Android potential path traversal vulnerability when using File class"

  14. 5.5CVE-2021-27753hcltech hcl sametimeEPSS 0.3%

    "Sametime Android PathTraversal Vulnerability"

  15. 8.8CVE-2021-25082sygnoos popup builderEPSS 5.2%

    The Popup Builder WordPress plugin before 4.0.7 does not validate and sanitise the sgpb_type parameter before using it in a require statement, leading to a Local File Inclusion issue. Furthermore, since the beginning of the string can be c…

  16. 5.3CVE-2022-25358awful-salmonella-tar project awful-salmonella-tarEPSS 1.1%

    A ..%2F path traversal vulnerability exists in the path handler of awful-salmonella-tar before 0.0.4. Attackers can only list directories (not read files). This occurs because the safe-path? Scheme predicate is not used for directories.

  17. 6.5CVE-2021-40841liveconfigEPSS 1.1%

    A Path Traversal vulnerability for a log file in LiveConfig 2.12.2 allows authenticated attackers to read files on the underlying server.

  18. 6.5CVE-2022-0673eclipse lemminxEPSS 1.0%

    A flaw was found in LemMinX in versions prior to 0.19.0. Cache poisoning of external schema files due to directory traversal.

  19. 9.1CVE-2021-26619bigfile bigfileagentEPSS 0.9%

    An path traversal vulnerability leading to delete arbitrary files was discovered in BigFileAgent. Remote attackers can use this vulnerability to delete arbitrary files of unspecified number of users.

  20. 7.5CVE-2022-25298webcc project webccEPSS 1.7%

    This affects the package sprinfall/webcc before 0.3.0. It is possible to traverse directories to fetch arbitrary files from the server.

  21. 7.5CVE-2022-22914ovidentiaEPSS 1.4%

    An incorrect access control issue in the component FileManager of Ovidentia CMS 6.0 allows authenticated attackers to to view and download content in the upload directory via path traversal.

  22. 7.5CVE-2022-24983jqueryformEPSS 2.7%

    Forms generated by JQueryForm.com before 2022-02-05 allow remote attackers to obtain the URI to any uploaded file by capturing the POST response. When chained with CVE-2022-24984, this could lead to unauthenticated remote code execution on…

  23. 7.5CVE-2021-35380solari termtalk serverExploitEPSS 37%

    A Directory Traversal vulnerability exists in Solari di Udine TermTalk Server (TTServer) 3.24.0.2, which lets an unauthenticated malicious user gain access to the files on the remote system by gaining access to the relative path of the fil…

  24. 4.3CVE-2022-25188jenkins fortifyEPSS 1.2%

    Jenkins Fortify Plugin 20.2.34 and earlier does not sanitize the appName and appVersion parameters of its Pipeline steps, allowing attackers with Item/Configure permission to write or overwrite .xml files on the Jenkins controller file sys…

  25. 6.5CVE-2022-25178jenkins pipeline\EPSS 1.7%

    Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier does not restrict the names of resources passed to the libraryResource step, allowing attackers able to configure Pipelines permission to read arbitrary files o…

  26. 7.5CVE-2021-43734keking kkfileviewEPSS 10%

    kkFileview v4.0.0 has arbitrary file read through a directory traversal vulnerability which may lead to sensitive file leak on related host.

  27. 9.8CVE-2022-24977impresscmsEPSS 6.4%

    ImpressCMS before 1.4.2 allows unauthenticated remote code execution via ...../// directory traversal in origName or imageName, leading to unsafe interaction with the CKEditor processImage.php script. The payload may be placed in PHP_SESSI…

  28. 4.4CVE-2021-44111s-cartEPSS 0.5%

    A Directory Traversal vulnerability exists in S-Cart 6.7 via download in sc-admin/backup.

  29. 7.5CVE-2021-22804schneider-electric interactive graphical scada system data collectorEPSS 1.3%

    A CWE-22: Improper Limitation of a Pathname to a Restricted Directory vulnerability exists that could cause disclosure of arbitrary files being read in the context of the user running IGSS, due to missing validation of user supplied data i…

  30. 8.8CVE-2021-22748schneider-electric c-bus toolkitEPSS 1.9%

    A CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability exists that could allow a remote code execution when a file is saved. Affected Product: C-Bus Toolkit (V1.15.9 and prior), C-Gate Server…

  31. 9.8CVE-2020-14523mitsubishielectricEPSS 2.3%

    Multiple Mitsubishi Electric Factory Automation products have a vulnerability that allows an attacker to execute arbitrary code.

  32. 8.1CVE-2022-24647cuppacmsEPSS 1.0%

    Cuppa CMS v1.0 was discovered to contain an arbitrary file deletion vulnerability via the unlink() function.

  33. 9.8CVE-2022-24312schneider-electric interactive graphical scada system data serverEPSS 3.5%

    A CWE-22: Improper Limitation of a Pathname to a Restricted Directory vulnerability exists that could cause modification of an existing file by adding at end of file or create a new file in the context of the Data Server potentially leadin…

  34. 9.8CVE-2022-24311schneider-electric interactive graphical scada system data serverEPSS 3.5%

    A CWE-22: Improper Limitation of a Pathname to a Restricted Directory vulnerability exists that could cause modification of an existing file by inserting at beginning of file or create a new file in the context of the Data Server potential…

  35. 5.4CVE-2022-23620xwikiEPSS 1.0%

    XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions AbstractSxExportURLFactoryActionHandler#processSx does not escape anything from SSX document references when seri…

  36. 5.3CVE-2021-45286zzcmsEPSS 1.7%

    Directory Traversal vulnerability exists in ZZCMS 2021 via the skin parameter in 1) index.php, 2) bottom.php, and 3) top_index.php.

  37. 7.8CVE-2022-21999microsoftKEVExploitEPSS 41%

    Windows Print Spooler Elevation of Privilege Vulnerability

  38. 7.5CVE-2022-21193dounokouno transmitmailEPSS 2.0%

    Directory traversal vulnerability in TransmitMail 2.5.0 to 2.6.1 allows a remote unauthenticated attacker to obtain an arbitrary file on the server via unspecified vectors.

  39. 4.3CVE-2022-22931apache jamesEPSS 1.8%

    Fix of CVE-2021-40525 do not prepend delimiters upon valid directory validations. Affected implementations include: - maildir mailbox store - Sieve file repository This enables a user to access other users data stores (limited to user name…

  40. 4.9CVE-2022-22679synology diskstation managerEPSS 1.2%

    Improper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in support service management in Synology DiskStation Manager (DSM) before 7.0.1-42218-2 allows remote authenticated users to write arbitrary file…

  41. 9.1CVE-2022-23609itunesrpc-remastered project itunesrpc-remasteredEPSS 1.0%

    iTunesRPC-Remastered is a Discord Rich Presence for iTunes on Windows utility. In affected versions iTunesRPC-Remastered did not properly sanitize user input used to remove files leading to file deletion only limited by the process permiss…

  42. 7.7CVE-2022-24348argoproj argo cdEPSS 2.8%

    Argo CD before 2.1.9 and 2.2.x before 2.2.4 allows directory traversal related to Helm charts because of an error in helmTemplate in repository.go. For example, an attacker may be able to discover credentials stored in a YAML file.

  43. 5.3CVE-2021-29398globalnorthstar northstar club managementEPSS 1.8%

    Directory traversal in /northstar/Common/NorthFileManager/fileManagerObjects.jsp Northstar Technologies Inc NorthStar Club Management 6.3 allows remote unauthenticated users to browse and list the directories across the entire filesystem o…

  44. 7.5CVE-2021-29395globalnorthstar northstar club managementEPSS 1.8%

    Directory travesal in /northstar/filemanager/download.jsp in Northstar Technologies Inc NorthStar Club Management 6.3 allows remote unauthenticated users to download arbitrary files, including JSP source code, across the filesystem of the …

  45. 7.5CVE-2021-44977idreamsoft icmsEPSS 1.6%

    In iCMS <=8.0.0, a directory traversal vulnerability allows an attacker to read arbitrary files.

  46. 9.1CVE-2022-23357mozilo mozilocmsEPSS 20%

    mozilo2.0 was discovered to be vulnerable to directory traversal attacks via the parameter curent_dir.

  47. 8.1CVE-2021-42753fortinet fortiwebEPSS 1.1%

    An improper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability [CWE-22] in FortiWeb management interface 6.4.1 and below, 6.3.15 and below, 6.2.x, 6.1.x, 6.0.x, 5.9.x and 5.8.x may allow an authenticated at…

  48. 9.8CVE-2022-0401w-zip project w-zipEPSS 1.6%

    Path Traversal in NPM w-zip prior to 1.0.12.

  49. 9.8CVE-2022-0320wpdeveloper essential addons for elementorEPSS 2.0%

    The Essential Addons for Elementor WordPress plugin before 5.0.5 does not validate and sanitise some template data before it them in include statements, which could allow unauthenticated attackers to perform Local File Inclusion attack and…

  50. 6.5CVE-2021-24761bestwebsoft error log viewerEPSS 0.6%

    The Error Log Viewer WordPress plugin before 1.1.2 does not perform nonce check when deleting a log file and does not have path traversal prevention, which could allow attackers to make a logged in admin delete arbitrary text files on the …