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.

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

CVETitleCVSSEPSSPublished
CVE-2025-48130 WordPress Spice Blocks plugin <= 2.0.7.4 - Arbitrary File Download vulnerability 7.5 high 0.52% 9 Jun 2025
CVE-2025-48267 WordPress WP Pipes plugin <= 1.4.2 - Arbitrary File Deletion Vulnerability 8.6 high 0.49% 9 Jun 2025
CVE-2025-5880 Whistle get-temp-file path traversal 5.3 medium 0.57% 9 Jun 2025
CVE-2025-3485 Allegra extractFileFromZip Directory Traversal Remote Code Execution Vulnerability 7.2 high 1.88% 6 Jun 2025
CVE-2025-33035 File Station 5 7.2 high 0.59% 6 Jun 2025
CVE-2025-5714 SoluçõesCoop iSoluçõesWEB Profile Information Update up.upload.php path traversal 5.3 medium 0.73% 6 Jun 2025
CVE-2025-3055 WP User Frontend Pro <= 4.1.3 - Authenticated (Subscriber+) Arbitrary File Deletion 8.1 high 0.90% 5 Jun 2025
CVE-2025-20259 Cisco ThousandEyes Endpoint Agent for Windows Arbitrary File Write Vulnerability 5.3 medium 0.17% 4 Jun 2025
CVE-2025-20277 Cisco Unified Contact Center Express Path Traversal Vulnerability 3.4 low 0.17% 4 Jun 2025
CVE-2025-5545 aaluoxiang oa_system ProcedureController.java image path traversal 5.3 medium 0.74% 3 Jun 2025
CVE-2025-5544 aaluoxiang oa_system UserpanelController.java image path traversal 5.3 medium 0.79% 3 Jun 2025
CVE-2025-5509 quequnlong shiyi-blog upload path traversal 5.3 medium 0.77% 3 Jun 2025
CVE-2024-12718 Bypass extraction filter to modify file metadata outside extraction directory 5.3 medium 0.82% 3 Jun 2025
CVE-2025-4138 Bypassing extraction filter to create symlinks to arbitrary targets outside extraction directory 7.5 high 1.49% 3 Jun 2025
CVE-2025-4330 Extraction filter bypass for linking outside extraction directory 7.5 high 0.97% 3 Jun 2025
CVE-2025-4517 Arbitrary writes via tarfile realpath overflow 9.4 critical 1.48% 3 Jun 2025
CVE-2025-31359 Parallels Desktop for Mac: Improper Limitation of a Pathname to a Restricted Directory 8.8 high 0.52% 3 Jun 2025
CVE-2025-41428 Keiyo System Co., LTD TimeWorks: Improper Limitation of a Pathname to a Restricted Directory 6.9 medium 0.68% 3 Jun 2025
CVE-2025-48387 tar-fs has issue where extract can write outside the specified dir with a specific tarball 8.7 high 0.58% 2 Jun 2025
CVE-2025-48940 MyBB's upgrade component vulnerable to local file inclusion 7.2 high 0.56% 2 Jun 2025
CVE-2025-37095 Hewlett Packard Enterprise (HPE) HPE StoreOnce Software: Improper Limitation of a Pathname to a Restricted Directory 5.9 medium 1.21% 2 Jun 2025
CVE-2025-37094 Hewlett Packard Enterprise (HPE) HPE StoreOnce Software: Improper Limitation of a Pathname to a Restricted Directory 5.5 medium 0.88% 2 Jun 2025
CVE-2025-27956 Directory Traversal vulnerability in WebLaudos 24.2 (04) allows a remote attacker to obtain sensitive information via the id parameter 7.5 high 1.10% 2 Jun 2025
CVE-2025-33004 IBM Planning Analytics Local path traversal 6.5 medium 0.49% 1 Jun 2025
CVE-2025-5385 JeeWMS cgformTemplateController.do doAdd path traversal 5.3 medium 0.52% 31 May 2025
CVE-2025-5381 Yifang CMS Admin Panel downloadFile path traversal 5.1 medium 0.72% 31 May 2025
CVE-2025-5380 ashinigit 天青一白 XueShengZhuSu 学生住宿管理系统 Image File Upload upload path traversal 5.3 medium 0.54% 31 May 2025
CVE-2025-4857 Newsletters <= 4.9.9.9 - Authenticated (Administrator+) Local File Inclusion 7.2 high 0.84% 31 May 2025
CVE-2025-47952 Traefik allows path traversal using url encoding 2.9 low 1.00% 30 May 2025
CVE-2025-5328 chshcms mccms Backups.php restore_del path traversal 5.3 medium 1.33% 29 May 2025
CVE-2024-51453 IBM Sterling Secure Proxy directory traversal 4.3 medium 0.55% 28 May 2025
CVE-2025-48370 auth-js Vulnerable to Insecure Path Routing from Malformed User Input 2.7 low 0.92% 27 May 2025
CVE-2025-48744 SIGB PMB: Improper Limitation of a Pathname to a Restricted Directory 6.4 medium 0.65% 27 May 2025
CVE-2025-5161 H3C SecCenter SMP-E1114P02 download operationDailyOut path traversal 5.3 medium 0.86% 26 May 2025
CVE-2025-5160 H3C SecCenter SMP-E1114P02 download path traversal 5.3 medium 0.86% 26 May 2025
CVE-2025-5159 H3C SecCenter SMP-E1114P02 download path traversal 5.3 medium 0.86% 25 May 2025
CVE-2025-5158 H3C SecCenter SMP-E1114P02 downloadSoftware path traversal 5.3 medium 0.86% 25 May 2025
CVE-2025-5157 H3C SecCenter SMP-E1114P02 fileContent path traversal 5.3 medium 0.86% 25 May 2025
CVE-2025-31053 WordPress KBx Pro Ultimate plugin < 8.0.5 - Arbitrary File Deletion Vulnerability 7.7 high 0.56% 23 May 2025
CVE-2025-46486 WordPress Nomupay Payment Processing Gateway plugin <= 7.1.7 - Arbitrary File Download Vulnerability 4.9 medium 0.54% 23 May 2025
CVE-2025-46527 WordPress Web3Press – Decentralize Publishing with Writing NFT plugin <= 3.2.0 - Arbitrary File Read vulnerability 6.5 medium 0.53% 23 May 2025
CVE-2025-47492 WordPress Drag and Drop File Upload for Elementor Forms plugin <= 1.4.3 - Arbitrary File Deletion Vulnerability 8.6 high 1.51% 23 May 2025
CVE-2025-47512 WordPress Tainacan plugin <= 0.21.14 - Arbitrary File Deletion vulnerability 8.6 high 0.55% 23 May 2025
CVE-2025-47513 WordPress Infocob CRM Forms plugin <= 2.4.0 - Arbitrary File Download vulnerability 4.9 medium 0.56% 23 May 2025
CVE-2025-47535 WordPress Opal Woo Custom Product Variation plugin <= 1.2.0 - Arbitrary File Deletion Vulnerability 8.6 high 0.53% 23 May 2025
CVE-2025-47603 WordPress belingoGeo plugin <= 1.12.0 - Arbitrary File Download Vulnerability 7.5 high 0.58% 23 May 2025
CVE-2025-48273 WordPress WP Job Portal plugin <= 2.3.2 - Arbitrary File Download Vulnerability 7.5 high 0.53% 23 May 2025
CVE-2025-4419 Hot Random Image <= 1.9.2 - Path Traversal to Authenticated (Contributor+) Limited Arbitrary Image Access via path Parameter 4.3 medium 0.47% 22 May 2025
CVE-2025-3486 Allegra isZipEntryValide Directory Traversal Remote Code Execution Vulnerability 7.2 high 1.67% 22 May 2025
CVE-2025-3884 Cloudera Hue Ace Editor Directory Traversal Information Disclosure Vulnerability 7.5 high 1.79% 22 May 2025