cve.bz

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

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. 5.3CVE-2023-26559syncEPSS 1.0%

    A directory traversal vulnerability in Oxygen XML Web Author before 25.0.0.3 build 2023021715 and Oxygen Content Fusion before 5.0.3 build 2023022015 allows an attacker to read files from a WEB-INF directory via a crafted HTTP request. (XM…

  2. 9.8CVE-2023-27648timmystudios change color of keypadEPSS 2.6%

    Directory Traversal vulnerability found in T-ME Studios Change Color of Keypad v.1.275.1.277 allows a remote attacker to execute arbitrary code via the dex file in the internal storage.

  3. 9.8CVE-2022-47027timmystudios fast typing keyboardEPSS 1.5%

    Timmystudios Fast Typing Keyboard v1.275.1.162 allows unauthorized apps to overwrite arbitrary files in its internal storage via a dictionary traversal vulnerability and achieve arbitrary code execution.

  4. 7.5CVE-2023-26969atrocore atropimEPSS 1.1%

    Atropim 1.5.26 is vulnerable to Directory Traversal.

  5. 9.1CVE-2023-27812bloofox bloofoxcmsEPSS 1.2%

    bloofox v0.5.2 was discovered to contain an arbitrary file deletion vulnerability via the delete_file() function.

  6. 7.8CVE-2022-42470fortinet forticlientEPSS 0.3%

    A relative path traversal vulnerability in Fortinet FortiClient (Windows) 7.0.0 - 7.0.7, 6.4.0 - 6.4.9, 6.2.0 - 6.2.9 and 6.0.0 - 6.0.10 allows an attacker to execute unauthorized code or commands via sending a crafted request to a specifi…

  7. 7.3CVE-2023-26293siemens tia portalEPSS 0.2%

    A vulnerability has been identified in Totally Integrated Automation Portal (TIA Portal) V15 (All versions), Totally Integrated Automation Portal (TIA Portal) V16 (All versions < V16 Update 7), Totally Integrated Automation Portal (TIA Por…

  8. 6.5CVE-2023-29186sap netweaverEPSS 25%

    In SAP NetWeaver (BI CONT ADDON) - versions 707, 737, 747, 757, an attacker can exploit a directory traversal flaw in a report to upload and overwrite files on the SAP server. Data cannot be read but if a remote attacker has sufficient (ad…

  9. 9.8CVE-2023-1478incsub hummingbirdEPSS 1.1%

    The Hummingbird WordPress plugin before 3.4.2 does not validate the generated file path for page cache files before writing them, leading to a path traversal vulnerability in the page cache module.

  10. 4.9CVE-2023-0156updraftplus all-in-one securityEPSS 20%

    The All-In-One Security (AIOS) WordPress plugin before 5.1.5 does not limit what log files to display in it's settings pages, allowing an authorized user (admin+) to view the contents of arbitrary files and list directories anywhere on the…

  11. 9.8CVE-2023-27603apache linkisEPSS 1.8%

    In Apache Linkis <=1.3.1, due to the Manager module engineConn material upload does not check the zip path, This is a Zip Slip issue, which will lead to a potential RCE vulnerability. We recommend users upgrade the version of Linkis to v…

  12. 8.8CVE-2023-1956oretnom23 online computer and laptop storeEPSS 1.1%

    A vulnerability classified as critical was found in SourceCodester Online Computer and Laptop Store 1.0. Affected by this vulnerability is an unknown functionality of the file /classes/Master.php?f=delete_img of the component Image Handler…

  13. 9.8CVE-2023-29478bibliocraftmod bibliocraftEPSS 1.7%

    BiblioCraft before 2.4.6 does not sanitize path-traversal characters in filenames, allowing restricted write access to almost anywhere on the filesystem. This includes the Minecraft mods folder, which results in code execution.

  14. 7.5CVE-2023-26820siteproxy project siteproxyEPSS 0.8%

    siteproxy v1.0 was discovered to contain a path traversal vulnerability via the component index.js.

  15. 7.5CVE-2020-19678EPSS 3.5%

    Directory Traversal vulnerability found in Pfsense v.2.1.3 and Pfsense Suricata v.1.4.6 pkg v.1.0.1 allows a remote attacker to obtain sensitive information via the file parameter to suricata/suricata_logs_browser.php.

  16. 6.5CVE-2023-20129ciscoEPSS 0.9%

    Multiple vulnerabilities in the web-based management interface of Cisco Prime Infrastructure and Cisco Evolved Programmable Network Manager (EPNM) could allow a remote attacker to obtain privileged information and conduct cross-site script…

  17. 9.8CVE-2020-19279wide project wideEPSS 1.1%

    Directory Traversal vulnerability found in B3log Wide allows a an attacker to escalate privileges via symbolic links.

  18. 7.1CVE-2023-25305polymcEPSS 0.6%

    PolyMC Launcher <= 1.4.3 is vulnerable to Directory Traversal. A mrpack file can be maliciously crafted to create arbitrary files outside of the installation directory.

  19. 7.1CVE-2023-25303atlauncherEPSS 0.6%

    ATLauncher <= 3.4.26.0 is vulnerable to Directory Traversal. A mrpack file can be maliciously crafted to create arbitrary files outside of the installation directory.

  20. 6.5CVE-2022-43771hitachi vantara pentaho business analytics serverEPSS 24%

    Hitachi Vantara Pentaho Business Analytics Server versions before 9.4.0.0 and 9.3.0.1, including 8.3.x, using the Pentaho Data Access plugin exposes a service endpoint for CSV import which allows a user supplied path to access resources th…

  21. 8.8CVE-2023-27534EPSS 2.4%

    A path traversal vulnerability exists in curl <8.0.0 SFTP implementation causes the tilde (~) character to be wrongly replaced when used as a prefix in the first path element, in addition to its intended use as the first element to indicat…

  22. 8.8CVE-2023-28833nextcloud serverEPSS 0.8%

    Nextcloud server is an open source home cloud implementation. In affected versions admins of a server were able to upload a logo or a favicon and to provided a file name which was not restricted and could overwrite files in the appdata dir…

  23. 8.8CVE-2022-23522mindsdbEPSS 0.9%

    MindsDB is an open source machine learning platform. An unsafe extraction is being performed using `shutil.unpack_archive()` from a remotely retrieved tarball. Which may lead to the writing of the extracted files to an unintended location.…

  24. 7.5CVE-2023-28732acymailingEPSS 0.6%

    Missing access control in AnyMailing Joomla Plugin allows to list and access files containing sensitive information from the plugin itself and access to system files via path traversal, when being granted access to the campaign's creation …

  25. 7.5CVE-2022-36982ivanti avalancheEPSS 75%

    This vulnerability allows remote attackers to read arbitrary files on affected installations of Ivanti Avalanche 6.3.3.101. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be byp…

  26. 9.8CVE-2022-36981ivanti avalancheEPSS 84%

    This vulnerability allows remote attackers to execute arbitrary code on affected installations of Ivanti Avalanche 6.3.3.101. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be b…

  27. 9.1CVE-2022-2560enterprisedt completeftp serverEPSS 78%

    This vulnerability allows remote attackers to delete arbitrary files on affected installations of EnterpriseDT CompleteFTP 22.1.0 Server. Authentication is not required to exploit this vulnerability. The specific flaw exists within the Htt…

  28. 8.1CVE-2023-27700muyucms project muyucmsEPSS 0.8%

    MuYuCMS v2.2 was discovered to contain an arbitrary file deletion vulnerability via the component /accessory/picdel.html.

  29. 5.3CVE-2022-48361huaweiEPSS 0.4%

    The Always On Display (AOD) has a path traversal vulnerability in theme files. Successful exploitation of this vulnerability may cause a failure in reading AOD theme resources.

  30. 6.5CVE-2023-0241pgadmin 4EPSS 8.8%

    pgAdmin 4 versions prior to v6.19 contains a directory traversal vulnerability. A user of the product may change another user's settings or alter the database.

  31. 4.3CVE-2023-0467wppool wp dark modeEPSS 0.7%

    The WP Dark Mode WordPress plugin before 4.0.8 does not properly sanitize the style parameter in shortcodes before using it to load a PHP template. This leads to Local File Inclusion on servers where non-existent directories may be travers…

  32. 9.8CVE-2023-1142deltaww infrasuite device masterEPSS 1.1%

    In Delta Electronics InfraSuite Device Master versions prior to 1.0.5, an attacker could use URL decoding to retrieve system files, credentials, and bypass authentication resulting in privilege escalation.

  33. 8.8CVE-2023-1134deltaww infrasuite device masterEPSS 0.7%

    Delta Electronics InfraSuite Device Master versions prior to 1.0.5 are affected by a path traversal vulnerability, which could allow an attacker to read local files, disclose plaintext credentials, and escalate privileges.

  34. 6.5CVE-2022-32199scriptcaseEPSS 1.7%

    db_convert.php in ScriptCase through 9.9.008 is vulnerable to Arbitrary File Deletion by an admin via a directory traversal sequence in the file parameter.

  35. 9.8CVE-2023-26802dcnglobal dcbi-netlog-lab firmwareEPSS 49%

    An issue in the component /network_config/nsg_masq.cgi of DCN (Digital China Networks) DCBI-Netlog-LAB v1.0 allows attackers to bypass authentication and execute arbitrary commands via a crafted request.

  36. 7.5CVE-2023-27055aver ptzapp 2EPSS 0.7%

    Aver Information Inc PTZApp2 v20.01044.48 allows attackers to access sensitive files via a crafted GET request.

  37. 9.8CVE-2023-1177lfprojects mlflowEPSS 70%

    Path Traversal: '\..\filename' in GitHub repository mlflow/mlflow prior to 2.2.1.

  38. 5.5CVE-2022-3146EPSS 0.2%

    A flaw was found in tripleo-ansible. Due to an insecure default configuration, the permissions of a sensitive file are not sufficiently restricted. This flaw allows a local attacker to use brute force to explore the relevant directory and …

  39. 5.5CVE-2022-3101EPSS 0.2%

    A flaw was found in tripleo-ansible. Due to an insecure default configuration, the permissions of a sensitive file are not sufficiently restricted. This flaw allows a local attacker to use brute force to explore the relevant directory and …

  40. 4.9CVE-2023-26361adobe coldfusionEPSS 59%

    Adobe ColdFusion versions 2018 Update 15 (and earlier) and 2021 Update 5 (and earlier) are affected by an Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability that could result in Arbitrary file syst…

  41. 6.5CVE-2023-20066cisco ios xeEPSS 1.7%

    A vulnerability in the web UI of Cisco IOS XE Software could allow an authenticated, remote attacker to perform a directory traversal and access resources that are outside the filesystem mountpoint of the web UI. This vulnerability is due …

  42. 8.8CVE-2018-25048codesysEPSS 1.0%

    The CODESYS runtime system in multiple versions allows an remote low privileged attacker to use a path traversal vulnerability to access and modify all system files as well as DoS the device.

  43. 5.3CVE-2023-25688ibm security key lifecycle managerEPSS 0.9%

    IBM Security Guardium Key Lifecycle Manager 3.0, 3.0.1, 4.0, 4.1, and 4.1.1could allow a remote attacker to traverse directories on the system. An attacker could send a specially crafted URL request containing "dot dot" sequences (/../) to…

  44. 7.5CVE-2023-27856rockwellautomation thinmanagerExploitEPSS 77%

    In affected versions, path traversal exists when processing a message of type 8 in Rockwell Automation's ThinManager ThinServer. An unauthenticated remote attacker can exploit this vulnerability to download arbitrary files on the disk …

  45. 9.8CVE-2023-27855rockwellautomation thinmanagerExploitEPSS 13%

    In affected versions, a path traversal exists when processing a message in Rockwell Automation's ThinManager ThinServer. An unauthenticated remote attacker could potentially exploit this vulnerability to upload arbitrary files to any direc…

  46. 5.3CVE-2023-25689ibm security key lifecycle managerEPSS 0.7%

    IBM Security Guardium Key Lifecycle Manager 3.0, 3.0.1, 4.0, 4.1 , and 4.1.1 could allow a remote attacker to traverse directories on the system. An attacker could send a specially crafted URL request containing "dot dot" sequences (/../) …

  47. 8.8CVE-2023-27981schneider-electricEPSS 0.7%

    A CWE-22: Improper Limitation of a Pathname to a Restricted Directory vulnerability exists in Custom Reports that could cause a remote code execution when a victim tries to open a malicious report. Affected Products: IGSS Data Server(IGSSd…

  48. 9.8CVE-2023-1467oretnom23 student study center desk management systemEPSS 1.1%

    A vulnerability classified as critical has been found in SourceCodester Student Study Center Desk Management System 1.0. Affected is an unknown function of the file Master.php?f=delete_img of the component POST Parameter Handler. The manip…

  49. 5.5CVE-2023-21456samsung androidEPSS 0.2%

    Path traversal vulnerability in Galaxy Themes Service prior to SMR Mar-2023 Release 1 allows attacker to access arbitrary file with system uid.

  50. 8.8CVE-2023-28105go-huge-util project go-huge-utilEPSS 0.6%

    go-used-util has commonly used utility functions for Go. Versions prior to 0.0.34 have a ZipSlip issue when using fsutil package to unzip files. When users use `zip.Unzip` to unzip zip files from a malicious attacker, they may be vulnerabl…