cve.bz

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

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-2017-20152imageserve project imageserveEPSS 1.0%

    A vulnerability, which was classified as problematic, was found in aerouk imageserve. Affected is an unknown function of the file public/viewer.php of the component File Handler. The manipulation of the argument filelocation leads to path …

  2. 5.3CVE-2018-25059pastebinit project pastebinitEPSS 0.8%

    A vulnerability was found in pastebinit up to 0.2.2 and classified as problematic. Affected by this issue is the function pasteHandler of the file server.go. The manipulation of the argument r.URL.Path leads to path traversal. Upgrading to…

  3. 7.5CVE-2022-38205esri portal for arcgisEPSS 1.6%

    In some non-default installations of Esri Portal for ArcGIS versions 10.9.1 and below, a directory traversal issue may allow a remote, unauthenticated attacker to traverse the file system and lead to the disclosure of sensitive data (not c…

  4. 8.8CVE-2022-46178metersphereEPSS 0.8%

    MeterSphere is a one-stop open source continuous testing platform, covering test management, interface testing, UI testing and performance testing. Versions prior to 2.5.1 allow users to upload a file, but do not validate the file name, wh…

  5. 9.8CVE-2022-4779elvexys streamxEPSS 1.3%

    StreamX applications from versions 6.02.01 to 6.04.34 are affected by a logic bug that allows to bypass the implemented authentication scheme. StreamX applications using StreamView HTML component with the public web server feature activate…

  6. 6.5CVE-2022-4778elvexys streamxEPSS 0.7%

    StreamX applications from versions 6.02.01 to 6.04.34 are affected by a path traversal vulnerability that allows authenticated users to get unauthorized access to files on the server's filesystem. StreamX applications using StreamView HTML…

  7. 7.8CVE-2022-44564huawei aslan-al10 firmwareEPSS 0.2%

    Huawei Aslan Children's Watch has a path traversal vulnerability. Successful exploitation may allow attackers to access or modify protected system resources.

  8. 7.5CVE-2022-38202esri arcgis serverEPSS 1.4%

    There is a path traversal vulnerability in Esri ArcGIS Server versions 10.9.1 and below. Successful exploitation may allow a remote, unauthenticated attacker traverse the file system to access files outside of the intended directory on Arc…

  9. 3.3CVE-2022-4773cloudsync project cloudsyncEPSS 0.4%Unsupported when assigned

    A vulnerability classified as problematic was found in cloudsync. Affected by this vulnerability is the function getItem of the file src/main/java/cloudsync/connector/LocalFilesystemConnector.java. The manipulation leads to path traversal.…

  10. 7.8CVE-2022-4772widoco project widocoEPSS 0.3%

    A vulnerability was found in Widoco and classified as critical. Affected by this issue is the function unZipIt of the file src/main/java/widoco/WidocoUtils.java. The manipulation leads to path traversal. It is possible to launch the attack…

  11. 9.1CVE-2020-36566tar-utils project tar-utilsEPSS 1.1%

    Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

  12. 9.1CVE-2020-36561unzip project unzipEPSS 1.4%

    Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

  13. 9.1CVE-2020-36560go-unzip project go-unzipEPSS 1.3%

    Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

  14. 7.5CVE-2020-36559aahframework aahEPSS 1.2%

    Due to improper sanitization of user input, HTTPEngine.Handle allows for directory traversal, allowing an attacker to read files outside of the target directory that the server has permission to read.

  15. 7.5CVE-2019-25073goa.design goaEPSS 1.5%

    Improper path sanitization in github.com/goadesign/goa before v3.0.9, v2.0.10, or v1.4.3 allow remote attackers to read files outside of the intended directory.

  16. 9.1CVE-2018-25046cloudfoundry archiverEPSS 1.3%

    Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

  17. 9.8CVE-2022-4748flatpressEPSS 0.9%

    A vulnerability was found in FlatPress. It has been classified as critical. This affects the function doItemActions of the file fp-plugins/mediamanager/panels/panel.mediamanager.file.php of the component File Delete Handler. The manipulati…

  18. 7.5CVE-2019-25087httpserver project httpserverEPSS 0.9%

    A vulnerability was found in RamseyK httpserver. It has been rated as critical. This issue affects the function ResourceHost::getResource of the file src/ResourceHost.cpp of the component URI Handler. The manipulation of the argument uri l…

  19. 6.5CVE-2021-39369philipsEPSS 0.9%

    In Philips (formerly Carestream) Vue MyVue PACS through 12.2.x.x, the VideoStream function allows Path Traversal by authenticated users to access files stored outside of the web root.

  20. 7.5CVE-2020-36629httpster project httpsterEPSS 0.9%

    A vulnerability classified as critical was found in SimbCo httpster. This vulnerability affects the function fs.realpathSync of the file src/server.coffee. The manipulation leads to path traversal. The exploit has been disclosed to the pub…

  21. 9.8CVE-2020-36628android processing development environment project android processing development environmentEPSS 0.9%

    A vulnerability classified as critical has been found in Calsign APDE. This affects the function handleExtract of the file APDE/src/main/java/com/calsignlabs/apde/build/dag/CopyBuildTask.java of the component ZIP File Handler. The manipula…

  22. 6.5CVE-2022-45894planetestream planet estreamEPSS 1.1%

    GetFile.aspx in Planet eStream before 6.72.10.07 allows ..\ directory traversal to read arbitrary local files.

  23. 7.5CVE-2022-44016simmeth lieferantenmanagerEPSS 0.9%

    An issue was discovered in Simmeth Lieferantenmanager before 5.6. An attacker can download arbitrary files from the web server by abusing an API call: /DS/LM_API/api/ConfigurationService/GetImages with an '"ImagesPath":"C:\\"' value.

  24. 9.8CVE-2022-47945thinkphpEPSS 30%

    ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled (lang_switch_on=true). An unauthenticated and remote attacker can exploit this to execute arbitrary operating sys…

  25. 7.5CVE-2022-23854aveva intouch access anywhereExploitEPSS 50%

    AVEVA InTouch Access Anywhere versions 2020 R2 and older are vulnerable to a path traversal exploit that could allow an unauthenticated user with network access to read files on the system outside of the secure gateway web server.

  26. 7.7CVE-2022-46171tauriEPSS 1.1%

    Tauri is a framework for building binaries for all major desktop platforms. The filesystem glob pattern wildcards `*`, `?`, and `[...]` match file path literals and leading dots by default, which unintentionally exposes sub folder content …

  27. 6.5CVE-2022-46492nbnbk project nbnbkEPSS 0.5%

    nbnbk commit 879858451d53261d10f77d4709aee2d01c72c301 was discovered to contain an arbitrary file read vulnerability via the component /api/Index/getFileBinary.

  28. 4.3CVE-2022-43858ibm iEPSS 1.1%

    IBM Navigator for i 7.3, 7.4, and 7.5 could allow an authenticated user to access the file system and download files they are authorized to but not while using this interface. The remote authenticated user can bypass the interface checks b…

  29. 4.3CVE-2022-43857ibm iEPSS 1.1%

    IBM Navigator for i 7.3, 7.4 and 7.5 could allow an authenticated user to access IBM Navigator for i log files they are authorized to but not while using this interface. The remote authenticated user can bypass the interface checks and d…

  30. 9.8CVE-2022-3184dataprobeEPSS 12%

    Dataprobe iBoot-PDU FW versions prior to 1.42.06162022 contain a vulnerability where the device’s existing firmware allows unauthenticated users to access an old PHP page vulnerable to directory traversal, which may allow a user to write a…

  31. 6.5CVE-2022-36221nokia fastmile firmwareEPSS 0.8%

    Nokia Fastmile 3tg00118abad52 is affected by an authenticated path traversal vulnerability which allows attackers to read any named pipe file on the system.

  32. 7.5CVE-2022-25895lite-dev-server project lite-dev-serverEPSS 1.4%

    All versions of package lite-dev-server are vulnerable to Directory Traversal due to missing input sanitization and sandboxes being employed to the req.url user input that is passed to the server code.

  33. 7.5CVE-2022-41591huaweiEPSS 0.5%

    The backup module has a path traversal vulnerability. Successful exploitation of this vulnerability causes unauthorized access to other system files.

  34. 7.5CVE-2021-46856huaweiEPSS 0.6%

    The multi-screen collaboration module has a path traversal vulnerability. Successful exploitation of this vulnerability may affect data confidentiality.

  35. 7.5CVE-2022-25931easy-static-server project easy-static-serverEPSS 1.4%

    All versions of package easy-static-server are vulnerable to Directory Traversal due to missing input sanitization and sandboxes being employed to the req.url user input that is passed to the server code.

  36. 7.2CVE-2022-41418blogengine blogengine.netEPSS 1.3%

    An issue in the component BlogEngine/BlogEngine.NET/AppCode/Api/UploadController.cs of BlogEngine.NET v3.3.8.0 allows attackers to execute arbitrary code via uploading a crafted PNG file.

  37. 6.8CVE-2022-40607ibm spectrum scaleEPSS 1.0%

    IBM Spectrum Scale 5.1 could allow users with permissions to create pod, persistent volume and persistent volume claim to access files and directories outside of the volume, including on the host filesystem. IBM X-Force ID: 235740.

  38. 9.8CVE-2022-4063pluginus inpost galleryEPSS 10%

    The InPost Gallery WordPress plugin before 2.1.4.1 insecurely uses PHP's extract() function when rendering HTML views, allowing attackers to force the inclusion of malicious files & URLs, which may enable them to run code on servers.

  39. 9.8CVE-2022-4594tjws2 project tjws2EPSS 0.6%

    A vulnerability was found in drogatkin TJWS2. It has been declared as critical. Affected by this vulnerability is the function deployWar of the file 1.x/src/rogatkin/web/WarRoller.java. The manipulation leads to path traversal. The attack …

  40. 8.8CVE-2022-4583neuroml jlemsEPSS 0.9%

    A vulnerability was found in jLEMS. It has been declared as critical. Affected by this vulnerability is the function unpackJar of the file src/main/java/org/lemsml/jlems/io/util/JUtil.java. The manipulation leads to path traversal. The att…

  41. 7.1CVE-2022-4572ubi reader project ubi readerEPSS 0.6%

    A vulnerability, which was classified as problematic, has been found in UBI Reader up to 0.8.0. Affected by this issue is the function ubireader_extract_files of the file ubireader/ubifs/output.py of the component UBIFS File Handler. The m…

  42. 7.8CVE-2022-23531datadoghq guarddogEPSS 0.7%

    GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to 0.1.5 are vulnerable to Relative Path Traversal when scanning a specially-crafted local PyPI package. Running GuardDog against a specially-crafted package can al…

  43. 6.5CVE-2022-23530datadoghq guarddogEPSS 0.8%

    GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to v0.1.8 are vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package. Extracting files using shutil.unpack_archive() from a potent…

  44. 7.5CVE-2022-46137aerocms project aerocmsEPSS 1.4%

    AeroCMS v0.0.1 is vulnerable to Directory Traversal. The impact is: obtain sensitive information (remote). The component is: AeroCMS v0.0.1.

  45. 6.7CVE-2022-20505google androidEPSS 0.1%

    In openFile of CallLogProvider.java, there is a possible permission bypass due to a path traversal error. This could lead to local escalation of privilege with User execution privileges needed. User interaction is not needed for exploitati…

  46. 9.8CVE-2022-45969alistgo alistEPSS 1.3%

    Alist v3.4.0 is vulnerable to Directory Traversal,

  47. 7.5CVE-2022-4511docsys project docsysEPSS 0.9%

    A vulnerability has been found in RainyGao DocSys and classified as critical. Affected by this vulnerability is an unknown functionality of the component com.DocSystem.controller.UserController#getUserImg. The manipulation leads to path tr…

  48. 5.3CVE-2020-24855easyjs easywebpack-cliEPSS 1.0%

    Directory Traversal vulnerability in easywebpack-cli before 4.5.2 allows attackers to obtain sensitive information via crafted GET request.

  49. 8.8CVE-2022-32573lansweeperEPSS 3.8%

    A directory traversal vulnerability exists in the AssetActions.aspx addDoc functionality of Lansweeper lansweeper 10.1.1.0. A specially-crafted HTTP request can lead to arbitrary file upload. An attacker can send an HTTP request to trigger…

  50. 8.8CVE-2022-29517lansweeperEPSS 58%

    A directory traversal vulnerability exists in the HelpdeskActions.aspx edittemplate functionality of Lansweeper lansweeper 10.1.1.0. A specially-crafted HTTP request can lead to arbitrary file upload. An attacker can send an HTTP request t…