cve.bz

CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path traversal), published in 2023, 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. 6.5CVE-2022-41216hybridsoftware cloudflowEPSS 0.6%

    Local File Inclusion vulnerability within Cloudflow allows attackers to retrieve confidential information from the system.

  2. 9.8CVE-2023-0947flatpressEPSS 3.6%

    Path Traversal in GitHub repository flatpressblog/flatpress prior to 1.3.

  3. 5.3CVE-2023-26265borg project borgEPSS 0.6%

    The Borg theme before 1.1.19 for Backdrop CMS does not sufficiently sanitize path arguments that are passed in via a URL. The function borg_preprocess_page in the file template.php does not properly sanitize incoming path arguments before …

  4. 7.5CVE-2023-24960ibm infosphere information serverEPSS 1.4%

    IBM InfoSphere Information Server 11.7 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 arbitrary files on the system.…

  5. 4.9CVE-2022-44299sscms siteserver cmsEPSS 0.8%

    SiteServerCMS 7.1.3 sscms has a file read vulnerability.

  6. 6.5CVE-2023-22380github enterprise serverEPSS 0.7%

    A path traversal vulnerability was identified in GitHub Enterprise Server that allowed arbitrary file reading when building a GitHub Pages site. To exploit this vulnerability, an attacker would need permission to create and build a GitHub …

  7. 7.8CVE-2022-33892intel quartus primeEPSS 0.2%

    Path traversal in the Intel(R) Quartus Prime Pro and Standard edition software may allow an authenticated user to potentially enable escalation of privilege via local access.

  8. 6.5CVE-2023-23784fortinet fortiwebEPSS 0.6%

    A relative path traversal in Fortinet FortiWeb version 7.0.0 through 7.0.2, FortiWeb version 6.3.6 through 6.3.20, FortiWeb 6.4 all versions allows attacker to information disclosure via specially crafted web requests.

  9. 6.5CVE-2023-23778fortinet fortiwebEPSS 0.6%

    A relative path traversal vulnerability [CWE-23] in FortiWeb version 7.0.1 and below, 6.4 all versions, 6.3 all versions, 6.2 all versions may allow an authenticated user to obtain unauthorized access to files and data via specifically cra…

  10. 8.1CVE-2022-41335fortinetEPSS 0.9%

    A relative path traversal vulnerability [CWE-23] in Fortinet FortiOS version 7.2.0 through 7.2.2, 7.0.0 through 7.0.8 and before 6.4.10, FortiProxy version 7.2.0 through 7.2.1, 7.0.0 through 7.0.7 and before 2.0.10, FortiSwitchManager 7.2.…

  11. 6.5CVE-2022-30300fortinet fortiwebEPSS 0.8%

    A relative path traversal vulnerability [CWE-23] in FortiWeb 7.0.0 through 7.0.1, 6.3.6 through 6.3.18, 6.4 all versions may allow an authenticated attacker to obtain unauthorized access to files and data via specifically crafted HTTP GET …

  12. 4.3CVE-2022-30299fortinet fortiwebEPSS 0.5%

    A path traversal vulnerability [CWE-23] in the API of FortiWeb 7.0.0 through 7.0.1, 6.3.0 through 6.3.19, 6.4 all versions, 6.2 all versions, 6.1 all versions, 6.0 all versions may allow an authenticated attacker to retrieve specific parts…

  13. 4.3CVE-2022-38731qaelum doseEPSS 0.7%

    Qaelum DOSE 18.08 through 21.1 before 21.2 allows Directory Traversal via the loadimages name parameter. It allows a user to specify an arbitrary location on the server's filesystem from which to load an image. (Only images are displayed t…

  14. 8.8CVE-2023-0862netmodule router softwareEPSS 2.4%

    The NetModule NSRW web administration interface is vulnerable to path traversals, which could lead to arbitrary file uploads and deletion. By uploading malicious files to the web root directory, authenticated users could gain remote comman…

  15. 7.8CVE-2022-47506solarwinds orion platformEPSS 0.6%

    SolarWinds Platform was susceptible to the Directory Traversal Vulnerability. This vulnerability allows a local adversary with authenticated account access to edit the default configuration, enabling the execution of arbitrary commands.

  16. 7.5CVE-2023-23946git-scm gitEPSS 1.1%

    Git, a revision control system, is vulnerable to path traversal prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8. By feeding a crafted input to `git apply`, a path outside the working tre…

  17. 8.8CVE-2023-22629southrivertech titan ftp serverExploitEPSS 12%

    An issue was discovered in TitanFTP through 1.94.1205. The move-file function has a path traversal vulnerability in the newPath parameter. An authenticated attacker can upload any file and then move it anywhere on the server's filesystem.

  18. 9.1CVE-2023-24188ureport project ureportEPSS 1.2%

    ureport v2.2.9 was discovered to contain a directory traversal vulnerability via the deletion function which allows for arbitrary files to be deleted.

  19. 4.4CVE-2023-24804owncloud clientEPSS 0.5%

    The ownCloud Android app allows ownCloud users to access, share, and edit files and folders. Prior to version 3.0, the app has an incomplete fix for a path traversal issue and is vulnerable to two bypass methods. The bypasses may lead to i…

  20. 9.8CVE-2022-48323sunlogin sunflowerEPSS 57%

    Sunlogin Sunflower Simplified (aka Sunflower Simple and Personal) 1.0.1.43315 is vulnerable to a path traversal issue. A remote and unauthenticated attacker can execute arbitrary programs on the victim host by sending a crafted HTTP reques…

  21. 6.5CVE-2022-25937glance project glanceEPSS 1.1%

    Versions of the package glance before 3.0.9 are vulnerable to Directory Traversal that allows users to read files outside the public root directory. This is related to but distinct from the vulnerability reported in [CVE-2018-3715](https:/…

  22. 4.3CVE-2023-24689mojoportalEPSS 0.7%

    An issue in Mojoportal v2.7.0.0 and below allows an authenticated attacker to list all css files inside the root path of the webserver via manipulation of the "s" parameter in /DesignTools/ManageSkin.aspx

  23. 3.3CVE-2023-21448samsung cloudEPSS 0.2%

    Path traversal vulnerability in Samsung Cloud prior to version 5.3.0.32 allows attacker to access specific png file.

  24. 5.3CVE-2023-24815eclipse vert.x-webEPSS 0.9%

    Vert.x-Web is a set of building blocks for building web applications in the java programming language. When running vertx web applications that serve files using `StaticHandler` on Windows Operating Systems and Windows File Systems, if the…

  25. 9.8CVE-2023-0745yugabyte yugabytedb managedEPSS 0.5%

    The High Availability functionality of Yugabyte Anywhere can be abused to write arbitrary files through the backup upload endpoint by using path traversal characters. This vulnerability is associated with program fi…

  26. 9.8CVE-2021-36471adminlte.io adminlteEPSS 1.8%

    Directory Traversal vulnerability in AdminLTE 3.1.0 allows remote attackers to gain escalated privilege and view sensitive information via /admin/index2.html, /admin/index3.html URIs. Note: AdminLTE developers dispute that this a weakness …

  27. 7.5CVE-2022-47762gin-vue-admin project gin-vue-adminEPSS 0.9%

    In gin-vue-admin < 2.5.5, the download module has a Path Traversal vulnerability.

  28. 9.1CVE-2021-37317asus rt-ac68u firmwareEPSS 1.6%

    Directory Traversal vulnerability in Cloud Disk in ASUS RT-AC68U router firmware version before 3.0.0.4.386.41634 allows remote attackers to write arbitrary files via improper sanitation on the target for COPY and MOVE operations.

  29. 5.4CVE-2021-36425phpwcmsEPSS 1.0%

    Directory traversal vulnerability in phpcms 1.9.25 allows remote attackers to delete arbitrary files via unfiltered $file parameter to unlink method in include/inc_act/act_ftptakeover.php file.

  30. 5.5CVE-2022-3560EPSS 0.3%

    A flaw was found in pesign. The pesign package provides a systemd service used to start the pesign daemon. This service unit runs a script to set ACLs for /etc/pki/pesign and /run/pesign directories to grant access privileges to users in t…

  31. 6.5CVE-2022-45783dotcmsEPSS 8.5%

    An issue was discovered in dotCMS core 4.x through 22.10.2. An authenticated directory traversal vulnerability in the dotCMS API can lead to Remote Code Execution.

  32. 6.5CVE-2023-23136lmxcmsEPSS 0.8%

    lmxcms v1.41 was discovered to contain an arbitrary file deletion vulnerability via BackdbAction.class.php.

  33. 8.1CVE-2023-0454orangescrumEPSS 1.0%

    OrangeScrum version 2.0.11 allows an authenticated external attacker to delete arbitrary local files from the server. This is possible because the application uses an unsanitized attacker-controlled parameter to construct an internal path.

  34. 7.5CVE-2022-47768serinf fast checkinEPSS 1.2%

    Serenissima Informatica Fast Checkin 1.0 is vulnerable to Directory Traversal.

  35. 5.3CVE-2016-15023sitefusion application serverEPSS 0.8%

    A vulnerability, which was classified as problematic, was found in SiteFusion Application Server up to 6.6.6. This affects an unknown part of the file getextension.php of the component Extension Handler. The manipulation leads to path trav…

  36. 7.5CVE-2022-46835sailpoint identityiqEPSS 1.0%

    IdentityIQ 8.3 and all 8.3 patch levels prior to 8.3p2, IdentityIQ 8.2 and all 8.2 patch levels prior to 8.2p5, IdentityIQ 8.1 and all 8.1 patch levels prior to 8.1p7, IdentityIQ 8.0 and all 8.0 patch levels prior to 8.0p6 allow access to …

  37. 5.5CVE-2023-0593yaffshiv project yaffshivEPSS 0.4%

    A path traversal vulnerability affects yaffshiv YAFFS filesystem extractor. By crafting a malicious YAFFS file, an attacker could force yaffshiv to write outside of the extraction directory. This issue affects yaffshiv up to version 0.1 i…

  38. 5.5CVE-2023-0592jefferson project jeffersonEPSS 0.4%

    A path traversal vulnerability affects jefferson's JFFS2 filesystem extractor. By crafting malicious JFFS2 files, attackers could force jefferson to write outside of the extraction directory.This issue affects jefferson: before 0.4.1.

  39. 5.5CVE-2023-0591ubi reader project ubi readerEPSS 0.4%

    ubireader_extract_files is vulnerable to path traversal when run against specifically crafted UBIFS files, allowing the attacker to overwrite files outside of the extraction directory (provided the process has write access to that file or …

  40. 7.5CVE-2022-39059changingtec megaservisignadapterEPSS 1.0%

    ChangingTech MegaServiSignAdapter component has a path traversal vulnerability within its file reading function. An unauthenticated remote attacker can exploit this vulnerability to access arbitrary system files.

  41. 9.8CVE-2022-22731schneider-electric ecostruxure power commissionEPSS 0.8%

    A CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability exists in a function that could allow an attacker to create or overwrite critical files that are used to execute code, such as programs …

  42. 9.8CVE-2022-0223schneider-electric ecostruxure power commissionEPSS 0.8%

    A CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability exists that could allow an attacker to create or overwrite critical files that are used to execute code, such as programs or libraries a…

  43. 7.5CVE-2022-38451EPSS 2.1%

    A directory traversal vulnerability exists in the httpd update.cgi functionality of FreshTomato 2022.5. A specially crafted HTTP request can lead to arbitrary file read. An attacker can send an HTTP request to trigger this vulnerability.

  44. 7.5CVE-2022-25936servst project servstEPSS 1.4%

    Versions of the package servst before 2.0.3 are vulnerable to Directory Traversal due to improper sanitization of the filePath variable.

  45. 7.3CVE-2022-48285jszip project jszipEPSS 1.5%

    loadAsync in JSZip before 3.8.0 allows Directory Traversal via a crafted ZIP archive.

  46. 9.8CVE-2022-43979pandorafms pandora fmsEPSS 0.9%

    There is a Path Traversal that leads to a Local File Inclusion in Pandora FMS v764. A function is called to check that the parameter that the user has inserted does not contain malicious characteres, but this check is insufficient. An atta…

  47. 7.5CVE-2022-39812italtel netmatch-s ciEPSS 1.0%

    Italtel NetMatch-S CI 5.2.0-20211008 allows Absolute Path Traversal under NMSCI-WebGui/SaveFileUploader. An unauthenticated user can upload files to an arbitrary path. An attacker can change the uploadDir parameter in a POST request (not p…

  48. 7.5CVE-2019-25053sage frp 1000EPSS 1.1%

    A path traversal vulnerability exists in Sage FRP 1000 before November 2019. This allows remote unauthenticated attackers to access files outside of the web tree via a crafted URL.

  49. 7.2CVE-2021-41143openmage magentoEPSS 1.3%

    OpenMage LTS is an e-commerce platform. Prior to versions 19.4.22 and 20.0.19, Magento admin users with access to the customer media could execute code on the server. Versions 19.4.22 and 20.0.19 contain a patch for this issue.

  50. 7.5CVE-2022-2712eclipse glassfishEPSS 1.0%

    In Eclipse GlassFish versions 5.1.0 to 6.2.5, there is a vulnerability in relative path traversal because it does not filter request path starting with './'. Successful exploitation could allow an remote unauthenticated attacker to access …