CWE-22: Improper Limitation of a Pathname to a Restricted Directory

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.

6,989 published CVE records name this weakness. Abstraction: Base. Status: Stable. CWE-22 at MITRE

CVETitleCVSSEPSSPublished
CVE-2021-3762 n/a quay/claircore: Improper Limitation of a Pathname to a Restricted Directory – 4.81% 3 Mar 2022
CVE-2022-24718 Path Traversal in ssr-pages 7.6 high 1.13% 1 Mar 2022
CVE-2021-24820 Cost Calculator <= 1.6 - Authenticated Local File Inclusion – 3.05% 28 Feb 2022
CVE-2021-24689 Contact Forms - Drag & Drop Contact Form Builder <= 1.0.5 - Admin+ Arbitrary System File Read – 1.32% 28 Feb 2022
CVE-2022-23612 Directory Traversal in OpenMRS Startup Filter 7.5 high 1.93% 22 Feb 2022
CVE-2022-0665 Path Traversal in pimcore/pimcore 4.9 medium 1.51% 22 Feb 2022
CVE-2021-25082 Popup Builder < 4.0.7 - LFI to RCE – 5.23% 21 Feb 2022
CVE-2021-26619 BigFileAgent arbitrary file Deleting vulnerability 7.1 high 0.90% 18 Feb 2022
CVE-2022-0673 n/a LemMinX: Improper Limitation of a Pathname to a Restricted Directory – 1.02% 18 Feb 2022
CVE-2021-22804 n/a Interactive Graphical SCADA System Data Collector (dc.exe) (V15.0.0.21243 and prior): Improper Limitation of a Pathname to a Restricted Directory – 1.29% 11 Feb 2022
CVE-2020-14523 Mitsubishi Electric Factory Automation Products Path Traversal 8.3 high 2.25% 11 Feb 2022
CVE-2021-22748 n/a C-Bus Toolkit (V1.15.9 and prior), C-Gate Server (V2.11.7 and prior): Improper Limitation of a Pathname to a Restricted Directory – 1.85% 11 Feb 2022
CVE-2022-24312 n/a Interactive Graphical SCADA System Data Server (V15.0.0.22020 and prior): Improper Limitation of a Pathname to a Restricted Directory – 3.46% 9 Feb 2022
CVE-2022-24311 n/a Interactive Graphical SCADA System Data Server (V15.0.0.22020 and prior): Improper Limitation of a Pathname to a Restricted Directory – 3.51% 9 Feb 2022
CVE-2022-23620 Path traversal in xwiki-platform-skin-skinx 6.8 medium 0.96% 9 Feb 2022
CVE-2022-21999 KEV Windows Print Spooler Elevation of Privilege Vulnerability 7.8 high 41.0% 9 Feb 2022
CVE-2022-22931 Path traversal in Apache James 3.6.1 – 1.82% 7 Feb 2022
CVE-2022-22679 Synology DiskStation Manager (DSM): Improper Limitation of a Pathname to a Restricted Directory 6.5 medium 1.20% 7 Feb 2022
CVE-2022-23609 Path traveresal in iTunesRPC-Remastered 8.3 high 1.07% 4 Feb 2022
CVE-2022-0401 Path Traversal in yuda-lyu/w-zip 9.4 critical 1.68% 1 Feb 2022
CVE-2022-0320 Essential Addons for Elementor < 5.0.5 - Unauthenticated LFI – 2.05% 1 Feb 2022
CVE-2021-24761 Error Log Viewer < 1.1.2 - Arbitrary Text File Deletion via CSRF – 0.62% 1 Feb 2022
CVE-2022-23602 Nim's rst parser sandboxed mode allows include which can embed any local file 7.7 high 1.39% 1 Feb 2022
CVE-2021-32841 Path Traversal in SharpZipLib 4.0 medium 1.11% 26 Jan 2022
CVE-2021-32842 Path Traversal in SharpZipLib 4.0 medium 0.92% 26 Jan 2022
CVE-2021-32840 Path Traversal in SharpZipLib 7.3 high 1.97% 26 Jan 2022
CVE-2022-21693 Path traversal in Onionshare 6.3 medium 1.20% 18 Jan 2022
CVE-2022-22054 ASUS RT-AX56U - Path Traversal 6.5 medium 0.47% 14 Jan 2022
CVE-2022-21682 flatpak-builder can access files outside the build directory. 7.7 high 1.84% 13 Jan 2022
CVE-2022-21675 Bytecode Viewer v2.10.x Zip Slip 9.9 critical 3.22% 12 Jan 2022
CVE-2021-39143 Path Traversal in spinnaker 6.6 medium 0.36% 4 Jan 2022
CVE-2021-40525 Sieve file storage vulnerable to path traversal attacks – 3.83% 4 Jan 2022
CVE-2021-25021 OMGF < 4.5.12 - Admin+ Arbitrary Folder Deletion via Path Traversal – 1.05% 3 Jan 2022
CVE-2021-25020 CAOS < 4.1.9 - Admin+ Arbitrary Folder Deletion via Path Traversal – 1.05% 3 Jan 2022
CVE-2021-21909 n/a Garrett Metal Detectors: Improper Limitation of a Pathname to a Restricted Directory 6.0 medium 1.05% 22 Dec 2021
CVE-2021-21908 n/a Garrett Metal Detectors: Improper Limitation of a Pathname to a Restricted Directory 6.0 medium 1.49% 22 Dec 2021
CVE-2021-21907 n/a Garrett Metal Detectors: Improper Limitation of a Pathname to a Restricted Directory 4.9 medium 1.47% 22 Dec 2021
CVE-2021-21904 n/a Garrett Metal Detectors: Improper Limitation of a Pathname to a Restricted Directory 9.1 critical 2.91% 22 Dec 2021
CVE-2021-21896 n/a Lantronix: Improper Limitation of a Pathname to a Restricted Directory 4.9 medium 2.23% 22 Dec 2021
CVE-2021-21895 n/a Lantronix: Improper Limitation of a Pathname to a Restricted Directory 9.1 critical 2.42% 22 Dec 2021
CVE-2021-21894 n/a Lantronix: Improper Limitation of a Pathname to a Restricted Directory 9.1 critical 2.48% 22 Dec 2021
CVE-2021-21886 n/a Lantronix: Improper Limitation of a Pathname to a Restricted Directory 4.3 medium 1.94% 22 Dec 2021
CVE-2021-21885 n/a Lantronix: Improper Limitation of a Pathname to a Restricted Directory 7.2 high 2.46% 22 Dec 2021
CVE-2021-21880 n/a Lantronix: Improper Limitation of a Pathname to a Restricted Directory 7.2 high 2.46% 22 Dec 2021
CVE-2021-21879 n/a Lantronix: Improper Limitation of a Pathname to a Restricted Directory 9.9 critical 3.78% 22 Dec 2021
CVE-2021-44162 Chain Sea Information Integration Co., Ltd ai chatbot system - Path Traversal 7.5 high 1.73% 20 Dec 2021
CVE-2021-43840 Path traversal in message_bus 4.4 medium 1.95% 17 Dec 2021
CVE-2021-3960 Privilege Escalation via the GravityZone productManager UpdateServer.KitsManager API (VA-10146) 7.1 high 0.32% 16 Dec 2021
CVE-2021-43836 PHP file inclusion in the Sulu admin panel 8.5 high 2.05% 15 Dec 2021
CVE-2021-43831 Files on the host computer can be accessed from the Gradio interface 7.7 high 3.84% 15 Dec 2021