cve.bz

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

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. 7.5CVE-2015-2074sap businessobjects edgeEPSS 3.5%

    The File Repository Server (FRS) CORBA listener in SAP BussinessObjects Edge 4.0 allows remote attackers to write to arbitrary files via a full pathname, aka SAP Note 2018681.

  2. 7.5CVE-2015-2073sap businessobjects edgeEPSS 4.0%

    The File RepositoRy Server (FRS) CORBA listener in SAP BussinessObjects Edge 4.0 allows remote attackers to read arbitrary files via a full pathname, aka SAP Note 2018682.

  3. 9.8CVE-2021-38197go-unarr project go-unarrEPSS 2.1%

    unarr.go in go-unarr (aka Go bindings for unarr) 0.1.1 allows Directory Traversal via ../ in a pathname within a TAR archive.

  4. 6.5CVE-2021-38136corero securewatch managed servicesEPSS 1.2%

    Corero SecureWatch Managed Services 9.7.2.0020 is affected by a Path Traversal vulnerability via the snap_file parameter in the /it-IT/splunkd/__raw/services/get_snapshot HTTP API endpoint. A ‘low privileged’ attacker can read any file on …

  5. 6.5CVE-2021-34638w3eden download managerEPSS 1.3%

    Authenticated Directory Traversal in WordPress Download Manager <= 3.1.24 allows authenticated (Contributor+) users to obtain sensitive configuration file information, as well as allowing Author+ users to perform XSS attacks, by setting Do…

  6. 6.5CVE-2021-36168fortinet fortiportalEPSS 1.1%

    A Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Fortinet FortiPortal 6.x before 6.0.5, FortiPortal 5.3.x before 5.3.6 and any FortiPortal before 6.2.5 allows authenticated attacker to disclosure informat…

  7. 6.5CVE-2021-24010fortinet fortisandboxEPSS 0.9%

    Improper limitation of a pathname to a restricted directory vulnerabilities in FortiSandbox 3.2.0 through 3.2.2, and 3.1.0 through 3.1.4 may allow an authenticated user to obtain unauthorized access to files and data via specifially crafte…

  8. 7.5CVE-2021-35397drogonEPSS 4.0%

    A path traversal vulnerability in the static router for Drogon from 1.0.0-beta14 to 1.6.0 could allow an unauthenticated, remote attacker to arbitrarily read files. The vulnerability is due to lack of proper input validation for requested …

  9. 9.8CVE-2020-19305metinfoEPSS 2.1%

    An issue in /app/system/column/admin/index.class.php of Metinfo v7.0.0 causes the indeximg parameter to be deleted when the column is deleted, allowing attackers to escalate privileges.

  10. 7.5CVE-2020-19304metinfoEPSS 1.9%

    An issue in /admin/index.php?n=system&c=filept&a=doGetFileList of Metinfo v7.0.0 allows attackers to perform a directory traversal and access sensitive information.

  11. 8.1CVE-2021-32804EPSS 15%

    The npm package "tar" (aka node-tar) before versions 6.1.1, 5.0.6, 4.4.14, and 3.3.2 has a arbitrary File Creation/Overwrite vulnerability due to insufficient absolute path sanitization. node-tar aims to prevent extraction of absolute file…

  12. 8.1CVE-2021-32803EPSS 7.8%

    The npm package "tar" (aka node-tar) before versions 6.1.2, 5.0.7, 4.4.15, and 3.2.3 has an arbitrary File Creation/Overwrite vulnerability via insufficient symlink protection. `node-tar` aims to guarantee that any file whose location woul…

  13. 6.5CVE-2021-32018jump-technology asset managementEPSS 1.2%

    An issue was discovered in JUMP AMS 3.6.0.04.009-2487. The JUMP SOAP API was vulnerable to arbitrary file reading due to an improper limitation of file loading on the server filesystem, aka directory traversal.

  14. 8.8CVE-2021-32016jump-technology asset managementEPSS 2.3%

    An issue was discovered in JUMP AMS 3.6.0.04.009-2487. A JUMP SOAP endpoint permitted the writing of arbitrary files to a user-controlled location on the remote filesystem (with user-controlled content) via directory traversal, potentially…

  15. 8.1CVE-2021-32814skytableEPSS 2.1%

    Skytable is a NoSQL database with automated snapshots and TLS. Versions prior to 0.5.1 are vulnerable to a a directory traversal attack enabling remotely connected clients to destroy and/or manipulate critical files on the host's file syst…

  16. 5.3CVE-2021-36157linuxfoundation cortexEPSS 1.4%

    An issue was discovered in Grafana Cortex through 1.9.0. The header value X-Scope-OrgID is used to construct file paths for rules files, and if crafted to conduct directory traversal such as ae ../../sensitive/path/in/deployment pathname, …

  17. 5.3CVE-2021-36156grafana lokiEPSS 1.5%

    An issue was discovered in Grafana Loki through 2.2.1. The header value X-Scope-OrgID is used to construct file paths for rules files, and if crafted to conduct directory traversal such as ae ../../sensitive/path/in/deployment pathname, th…

  18. 8.8CVE-2020-26806objectplanet opinioEPSS 6.0%

    admin/file.do in ObjectPlanet Opinio before 7.15 allows Unrestricted File Upload of executable JSP files, resulting in remote code execution, because filePath can have directory traversal and fileContent can be valid JSP code.

  19. 5.3CVE-2021-30483isomorphic-gitEPSS 2.2%

    isomorphic-git before 1.8.2 allows Directory Traversal via a crafted repository.

  20. 7.5CVE-2021-28966ruby-lang rubyEPSS 58%

    In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.

  21. 7.5CVE-2021-23415elfinder.aspnet project elfinder.aspnetEPSS 1.7%

    This affects the package elFinder.AspNet before 1.1.1. The user-controlled file name is not properly sanitized before it is used to create a file system path.

  22. 8.1CVE-2021-37447nchsoftware quorumEPSS 1.6%

    In NCH Quorum v2.03 and earlier, an authenticated user can use directory traversal via documentdelete?file=/.. for file deletion.

  23. 4.3CVE-2021-37446nchsoftware quorumEPSS 1.2%

    In NCH Quorum v2.03 and earlier, an authenticated user can use directory traversal via documentprop?file=/.. for file reading.

  24. 6.5CVE-2021-37445nchsoftware quorumEPSS 1.4%

    In NCH Quorum v2.03 and earlier, an authenticated user can use directory traversal via logprop?file=/.. for file reading.

  25. 8.8CVE-2021-37444nchsoftware ivm attendantEPSS 1.9%

    NCH IVM Attendant v5.12 and earlier suffers from a directory traversal weakness upon uploading plugins in a ZIP archive. This can lead to code execution if a ZIP element's pathname is set to a Windows startup folder, a file for the inbuilt…

  26. 8.1CVE-2021-37443nchsoftware ivm attendantEPSS 1.2%

    NCH IVM Attendant v5.12 and earlier allows path traversal via the logdeleteselected check0 parameter for file deletion.

  27. 6.5CVE-2021-37442nchsoftware ivm attendantEPSS 1.2%

    NCH IVM Attendant v5.12 and earlier allows path traversal via viewfile?file=/.. to read files.

  28. 8.8CVE-2021-37441nch axon pbxEPSS 1.5%

    NCH Axon PBX v2.22 and earlier allows path traversal for file deletion via the logdelete?file=/.. substring.

  29. 6.5CVE-2021-37440nch axon pbxEPSS 1.2%

    NCH Axon PBX v2.22 and earlier allows path traversal for file disclosure via the logprop?file=/.. substring.

  30. 6.5CVE-2021-37439nch flexiserverEPSS 1.2%

    NCH FlexiServer v6.00 suffers from a syslog?file=/.. path traversal vulnerability.

  31. 6.5CVE-2021-37469nch webdictateEPSS 1.2%

    In NCH WebDictate v2.13 and earlier, authenticated users can abuse logprop?file=/.. path traversal to read files on the filesystem.

  32. 6.8CVE-2020-5370dell emc openmanage enterpriseEPSS 1.5%

    Dell EMC OpenManage Enterprise (OME) versions prior to 3.4 contain an arbitrary file overwrite vulnerability. A remote authenticated malicious user with high privileges could potentially exploit this vulnerability to overwrite arbitrary fi…

  33. 6.5CVE-2021-1617cisco intersight virtual applianceEPSS 1.5%

    Multiple vulnerabilities in the web-based management interface of Cisco Intersight Virtual Appliance could allow an authenticated, remote attacker to conduct a path traversal or command injection attack on an affected system. These vulnera…

  34. 5.9CVE-2021-35521idemiaEPSS 1.4%

    A path traversal in Thrift command handlers in IDEMIA Morpho Wave Compact and VisionPass devices before 2.6.2 allows remote authenticated attackers to achieve denial of services and information disclosure via TCP/IP packets.

  35. 7.5CVE-2021-35054minecraftEPSS 1.4%

    Minecraft before 1.17.1, when online-mode=false is configured, allows path traversal for deletion of arbitrary JSON files.

  36. 7.5CVE-2021-34820aat novus management systemEPSS 4.0%

    Web Path Directory Traversal in the Novus HTTP Server. The Novus HTTP Server is affected by the Directory Traversal for Arbitrary File Access vulnerability. A remote, unauthenticated attacker using an HTTP GET request may be able to exploi…

  37. 4.3CVE-2021-35968learningdigital orca hcmEPSS 1.0%

    The directory list page parameter of the Orca HCM digital learning platform fails to filter special characters properly. Remote attackers can access the system directory thru Path Traversal with users’ privileges.

  38. 5.3CVE-2021-35967learningdigital orca hcmEPSS 1.3%

    The directory page parameter of the Orca HCM digital learning platform does not filter special characters. Remote attackers can access the system directory thru Path Traversal without logging in.

  39. 8.8CVE-2021-24453include me project include meEPSS 5.0%

    The Include Me WordPress plugin through 1.2.1 is vulnerable to path traversal / local file inclusion, which can lead to Remote Code Execution (RCE) of the system due to log poisoning and therefore potentially a full compromise of the under…

  40. 5.3CVE-2021-24447silkypress wp image zoomEPSS 1.4%

    The WP Image Zoom WordPress plugin before 1.47 did not validate its tab parameter before using it in the include_once() function, leading to a local file inclusion issue in the admin dashboard

  41. 7.5CVE-2021-32769objectcomputing micronautEPSS 1.7%

    Micronaut is a JVM-based, full stack Java framework designed for building JVM applications. A path traversal vulnerability exists in versions prior to 2.5.9. With a basic configuration, it is possible to access any file from a filesystem, …

  42. 7.5CVE-2021-35962secomEPSS 1.8%

    Specific page parameters in Dr. ID Door Access Control and Personnel Attendance Management system does not filter special characters. Remote attackers can apply Path Traversal means to download credential files from the system without perm…

  43. 4.9CVE-2021-20511ibm security verify accessEPSS 1.9%

    IBM Security Verify Access Docker 10.0.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 arbitrary files on the syste…

  44. 6.5CVE-2021-21586dell wyse management suiteEPSS 4.0%

    Wyse Management Suite versions 3.2 and earlier contain an absolute path traversal vulnerability. A remote authenticated malicious user could exploit this vulnerability in order to read arbitrary files on the system.

  45. 6.5CVE-2021-22867github enterprise serverEPSS 1.2%

    A path traversal vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-controlled configuration options used by GitHub Pages were not sufficiently restricted and made it po…

  46. 7.5CVE-2021-23407elfinder.net.core project elfinder.net.coreEPSS 2.0%

    This affects the package elFinder.Net.Core from 0 and before 1.2.4. The user-controlled file name is not properly sanitized before it is used to create a file system path.

  47. 6.5CVE-2021-33211element-it http commanderEPSS 1.7%

    A Directory Traversal vulnerability in the Unzip feature in Elements-IT HTTP Commander 5.3.3 allows remote authenticated users to write files to arbitrary directories via relative paths in ZIP archives.

  48. 4.6CVE-2021-22440huaweiEPSS 0.2%

    There is a path traversal vulnerability in some Huawei products. The vulnerability is due to that the software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restri…

  49. 5.3CVE-2021-32746icingaEPSS 1.3%

    Icinga Web 2 is an open source monitoring web interface, framework and command-line interface. Between versions 2.3.0 and 2.8.2, the `doc` module of Icinga Web 2 allows to view documentation directly in the UI. It must be enabled manually …

  50. 7.5CVE-2021-33807gespageEPSS 16%

    Cartadis Gespage through 8.2.1 allows Directory Traversal in gespage/doDownloadData and gespage/webapp/doDownloadData.