cve.bz

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

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-2023-28127ivanti avalancheEPSS 59%

    A path traversal vulnerability exists in Avalanche version 6.3.x and below that when exploited could result in possible information disclosure.

  2. 6.0CVE-2023-20098ciscoEPSS 0.5%

    A vulnerability in the CLI of Cisco SDWAN vManage Software could allow an authenticated, local attacker to delete arbitrary files. This vulnerability is due to improper filtering of directory traversal character sequences within system …

  3. 2.7CVE-2023-29128siemensEPSS 0.7%

    A vulnerability has been identified in SIMATIC Cloud Connect 7 CC712 (All versions >= V2.0 < V2.1), SIMATIC Cloud Connect 7 CC716 (All versions >= V2.0 < V2.1). The filename in the upload feature of the web based management of the affected…

  4. 7.6CVE-2023-29104siemensEPSS 0.7%

    A vulnerability has been identified in SIMATIC Cloud Connect 7 CC712 (All versions >= V2.0 < V2.1), SIMATIC Cloud Connect 7 CC716 (All versions >= V2.0 < V2.1). The filename in the upload feature of the web based management of the affected…

  5. 3.3CVE-2023-27409siemens scalance lpe9403 firmwareEPSS 0.2%

    A vulnerability has been identified in SCALANCE LPE9403 (All versions < V2.1). A path traversal vulnerability was found in the `deviceinfo` binary via the `mac` parameter. This could allow an authenticated attacker with access to the SSH i…

  6. 7.5CVE-2023-31181wjjsoft innokbEPSS 0.7%

    WJJ Software - InnoKB Server, InnoKB/Console 2.2.1 - CWE-22: Path Traversal

  7. 7.5CVE-2023-31179agilepoint nxEPSS 0.7%

    AgilePoint NX v8.0 SU2.2 & SU2.3 - Path traversal - Vulnerability allows path traversal and downloading files from the server, by an unspecified request.

  8. 7.5CVE-2023-30855pimcoreEPSS 0.8%

    Pimcore is an open source data and experience management platform. Versions of Pimcore prior to 10.5.18 are vulnerable to path traversal. The impact of this path traversal and arbitrary extension is limited to creation of arbitrary files a…

  9. 7.5CVE-2023-32235ghostExploitEPSS 39%

    Ghost before 5.42.1 allows remote attackers to read arbitrary files within the active theme's folder via /assets/built%2F..%2F..%2F/ directory traversal. This occurs in frontend/web/middleware/static-theme.js.

  10. 7.5CVE-2023-25289virtualreception digital reciptieExploitEPSS 7.7%

    Directory Traversal vulnerability in virtualreception Digital Receptie version win7sp1_rtm.101119-1850 6.1.7601.1.0.65792 in embedded web server, allows attacker to gain sensitive information via a crafted GET request.

  11. 9.8CVE-2023-30268cltphpEPSS 0.8%

    CLTPHP <=6.0 is vulnerable to Improper Input Validation.

  12. 7.5CVE-2017-20184gavazzionline powersoftEPSS 2.8%

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Carlo Gavazzi Powersoft up to version 2.1.1.1 allows an unauthenticated, remote attacker to download any file from the affected device.

  13. 9.8CVE-2022-47757imoEPSS 1.0%

    In imo.im 2022.11.1051, a path traversal vulnerability delivered via an unsanitized deeplink can force the application to write a file into the application's data directory. This may allow an attacker to save a shared library under a speci…

  14. 7.1CVE-2023-27993fortinet fortiadcEPSS 0.2%

    A relative path traversal [CWE-23] in Fortinet FortiADC version 7.2.0 and before 7.1.1 allows a privileged attacker to delete arbitrary directories from the underlying file system via crafted CLI commands.

  15. 4.3CVE-2023-28406f5EPSS 1.2%

    A directory traversal vulnerability exists in an undisclosed page of the BIG-IP Configuration utility which may allow an authenticated attacker to read files with .xml extension. Access to restricted information is limited and the attacker…

  16. 8.8CVE-2022-47875jedoxExploitEPSS 10%

    A Directory Traversal vulnerability in /be/erpc.php in Jedox GmbH Jedox 2020.2.5 allows remote authenticated users to execute arbitrary code.

  17. 7.5CVE-2022-484833cxEPSS 2.0%

    3CX before 18 Hotfix 1 build 18.0.3.461 on Windows allows unauthenticated remote attackers to read %WINDIR%\system32 files via /Electron/download directory traversal in conjunction with a path component that has a drive letter and uses bac…

  18. 7.5CVE-2022-484823cxEPSS 2.2%

    3CX before 18 Update 2 Security Hotfix build 18.0.2.315 on Windows allows unauthenticated remote attackers to read certain files via /Electron/download directory traversal. Files may have credentials, full backups, call recordings, and cha…

  19. 9.8CVE-2015-10105ad33lx ip blacklist cloudEPSS 1.0%

    A vulnerability, which was classified as critical, was found in IP Blacklist Cloud Plugin up to 3.42 on WordPress. This affects the function valid_js_identifier of the file ip_blacklist_cloud.php of the component CSV File Import. The manip…

  20. 7.5CVE-2023-31483cauldrondevelopment cbangEPSS 1.0%

    tar/TarFileReader.cpp in Cauldron cbang before bastet-v8.1.17 has a directory traversal during extraction that allows the attacker to create or write to files outside the current directory via a crafted tar archive.

  21. 7.5CVE-2023-30380dedecmsEPSS 1.2%

    An issue in the component /dialog/select_media.php of DedeCMS v5.7.107 allows attackers to execute a directory traversal.

  22. 4.9CVE-2023-30852pimcoreEPSS 1.0%

    Pimcore is an open source data and experience management platform. Prior to version 10.5.21, the `/admin/misc/script-proxy` API endpoint that is accessible by an authenticated administrator user is vulnerable to arbitrary JavaScript and CS…

  23. 6.5CVE-2023-2336pimcoreEPSS 0.7%

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

  24. 8.8CVE-2023-24836sun.net ehrd ctmsEPSS 1.2%

    SUNNET CTMS has vulnerability of path traversal within its file uploading function. An authenticated remote attacker with general user privilege can exploit this vulnerability to upload and execute scripts onto arbitrary directories to per…

  25. 4.9CVE-2023-22901changingtec mobile one time passwordEPSS 0.9%

    ChangingTec MOTP system has a path traversal vulnerability. A remote attacker with administrator’s privilege can exploit this vulnerability to access arbitrary system files.

  26. 7.8CVE-2023-26243hyundai gen5w l firmwareEPSS 0.3%

    An issue was discovered in the Hyundai Gen5W_L in-vehicle infotainment system AE_E_PE_EUR.S5W_L001.001.211214. The decryption binary used to decrypt firmware files has an information leak that allows an attacker to read the AES key and ini…

  27. 6.5CVE-2023-30265cltphpEPSS 1.0%

    CLTPHP <=6.0 is vulnerable to Directory Traversal.

  28. 7.5CVE-2023-2273rapid7 insight agentEPSS 0.7%

    Rapid7 Insight Agent token handler versions 3.2.6 and below, suffer from a Directory Traversal vulnerability whereby unsanitized input from a CLI argument flows into io.ioutil.WriteFile, where it is used as a path. This can result in a Pat…

  29. 2.2CVE-2023-25815EPSS 0.8%

    In Git for Windows, the Windows port of Git, no localized messages are shipped with the installer. As a consequence, Git is expected not to localize messages at all, and skips the gettext initialization. However, due to a change in MINGW-p…

  30. 7.5CVE-2023-25652EPSS 52%

    Git is a revision control system. Prior to versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1, by feeding specially crafted input to `git apply --reject`, a path outside the working tree can…

  31. 6.5CVE-2023-29200contaoEPSS 0.8%

    Contao is an open source content management system. Prior to versions 4.9.40, 4.13.21, and 5.1.4, logged in users can list arbitrary system files in the file manager by manipulating the Ajax request. However, it is not possible to read the…

  32. 6.5CVE-2023-23838solarwinds database performance analyzerEPSS 1.3%

    Directory traversal and file enumeration vulnerability which allowed users to enumerate to different folders of the server.

  33. 9.8CVE-2023-27105shanlingEPSS 1.3%

    A vulnerability in the Wi-Fi file transfer module of Shanling M5S Portable Music Player with Shanling MTouch OS v4.3 and Shanling M2X Portable Music Player with Shanling MTouch OS v3.3 allows attackers to arbitrarily read, delete, or modif…

  34. 8.1CVE-2023-30626jellyfinEPSS 2.0%

    Jellyfin is a free-software media system. Versions starting with 10.8.0 and prior to 10.8.10 and prior have a directory traversal vulnerability inside the `ClientLogController`, specifically `/ClientLog/Document`. When combined with a cros…

  35. 7.2CVE-2023-22914zyxelEPSS 1.0%

    A path traversal vulnerability in the “account_print.cgi” CGI program of Zyxel USG FLEX series firmware versions 4.50 through 5.35, and VPN series firmware versions 4.30 through 5.35, which could allow a remote authenticated attacker with …

  36. 7.5CVE-2022-48476jetbrains ktorEPSS 0.8%

    In JetBrains Ktor before 2.3.0 path traversal in the `resolveResource` method was possible

  37. 7.5CVE-2023-31059repetier-serverEPSS 5.6%

    Repetier Server through 1.4.10 allows ..%5c directory traversal for reading files that contain credentials, as demonstrated by connectionLost.php.

  38. 7.8CVE-2023-25508nvidia bmcEPSS 0.2%

    NVIDIA DGX-1 BMC contains a vulnerability in the IPMI handler, where an attacker with the appropriate level of authorization can upload and download arbitrary files under certain circumstances, which may lead to denial of service, escalati…

  39. 7.5CVE-2023-30620mindsdbEPSS 1.0%

    mindsdb is a Machine Learning platform to help developers build AI solutions. In affected versions an unsafe extraction is being performed using `tarfile.extractall()` from a remotely retrieved tarball. Which may lead to the writing of the…

  40. 7.5CVE-2023-26101progress flowmon packet investigatorEPSS 0.7%

    In Progress Flowmon Packet Investigator before 12.1.0, a Flowmon user with access to Flowmon Packet Investigator could leverage a path-traversal vulnerability to retrieve files on the Flowmon appliance's local filesystem.

  41. 6.5CVE-2023-28459pretalxExploitEPSS 6.6%

    pretalx 2.3.1 before 2.3.2 allows path traversal in HTML export (a non-default feature). Users were able to upload crafted HTML documents that trigger the reading of arbitrary files.

  42. 4.3CVE-2023-28458pretalxExploitEPSS 3.4%

    pretalx 2.3.1 before 2.3.2 allows path traversal in HTML export (a non-default feature). Organizers can trigger the overwriting (with the standard pretalx 404 page content) of an arbitrary file.

  43. 7.8CVE-2023-21093google androidEPSS 0.1%

    In extractRelativePath of FileUtils.java, there is a possible way to access files in a directory belonging to other applications due to a path traversal error. This could lead to local escalation of privilege with no additional execution p…

  44. 7.5CVE-2023-29887nuovo spreadsheet-readerEPSS 4.7%

    A Local File inclusion vulnerability in test.php in spreadsheet-reader 0.5.11 allows remote attackers to include arbitrary files via the File parameter.

  45. 4.3CVE-2023-30548gatsbyjs gatsby-plugin-sharpEPSS 0.9%

    gatsby-plugin-sharp is a plugin for the gatsby framework which exposes functions built on the Sharp image processing library. The gatsby-plugin-sharp plugin prior to versions 5.8.1 and 4.25.1 contains a path traversal vulnerability exposed…

  46. 6.5CVE-2023-29004roxy-wiEPSS 0.9%

    hap-wi/roxy-wi is a web interface for managing Haproxy, Nginx, Apache and Keepalived servers. A Path Traversal vulnerability was found in the current version of Roxy-WI (6.3.9.0 at the moment of writing this report). The vulnerability can …

  47. 8.8CVE-2023-1109phoenixcontactEPSS 0.8%

    In Phoenix Contacts ENERGY AXC PU Web service an authenticated restricted user of the web frontend can access, read, write and create files throughout the file system using specially crafted URLs via the upload and download functionality o…

  48. 7.5CVE-2022-34127glpi-project manageentitiesExploitEPSS 6.7%

    The Managentities plugin before 4.0.2 for GLPI allows reading local files via directory traversal in the inc/cri.class.php file parameter.

  49. 7.5CVE-2022-34126glpi-project activityEPSS 1.2%

    The Activity plugin before 3.1.1 for GLPI allows reading local files via directory traversal in the front/cra.send.php file parameter.

  50. 7.5CVE-2022-47501apache ofbizEPSS 10%

    Arbitrary file reading vulnerability in Apache Software Foundation Apache OFBiz when using the Solr plugin. This is a  pre-authentication attack. This issue affects Apache OFBiz: before 18.12.07.