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-3046 Path Traversal via Symbolic Links in run-llama/llama_index 7.5 high 0.64% 7 Jul 2025
CVE-2025-7108 risesoft-y9 Digital-Infrastructure Y9FileController.java deleteFile path traversal 5.3 medium 0.47% 7 Jul 2025
CVE-2025-7107 SimStudioAI sim route.ts handleLocalFile path traversal 6.9 medium 0.92% 7 Jul 2025
CVE-2023-51232 Directory Traversal vulnerability in dagster-webserver Dagster thru 1.5.11 allows remote attackers to obtain sensitive information via… 7.5 high 1.11% 7 Jul 2025
CVE-2025-7098 Comodo Internet Security Premium File Name path traversal 6.3 medium 0.82% 6 Jul 2025
CVE-2025-28980 WordPress Aviation Weather from NOAA plugin <= 0.7.2 - Arbitrary File Deletion Vulnerability 7.7 high 0.50% 4 Jul 2025
CVE-2025-49303 WordPress Frontend Admin by DynamiApps plugin <= 3.28.7 - Arbitrary File Download Vulnerability 6.8 medium 0.50% 4 Jul 2025
CVE-2025-2932 JKDEVKIT <= 1.9.4 - Authenticated (Subscriber+) Arbitrary File Deletion 8.8 high 0.89% 3 Jul 2025
CVE-2025-34076 Microweber CMS Authenticated Local File Inclusion via Backup API 6.1 medium 2.39% 2 Jul 2025
CVE-2025-53358 kotaemon Vulnerable to Path Traversal via Link Upload 6.5 medium 0.49% 2 Jul 2025
CVE-2025-53110 Model Context Protocol Servers Vulnerable to Path Validation Bypass via Colliding Path Prefix 7.3 high 0.58% 2 Jul 2025
CVE-2025-4946 Vikinger <= 1.9.32 - Authenticated (Subscriber+) Arbitrary File Deletion via vikinger_delete_activity_media_ajax Function 8.1 high 0.82% 2 Jul 2025
CVE-2025-27022 Path Traversal Vulnerability in Infinera G42 7.5 high 0.63% 2 Jul 2025
CVE-2025-24330 OAM service path traversal issue caused by a crafted SOAP message PlanId field within the RAN management network 6.4 medium 0.29% 2 Jul 2025
CVE-2025-24329 OAM service path traversal issue caused by a crafted SOAP message archive field within the RAN management network 6.4 medium 0.28% 2 Jul 2025
CVE-2025-5014 Home Villas | Real Estate WordPress Theme <= 2.8 - Authenticated (Subscriber+) Arbitrary File Deletion 8.8 high 0.89% 2 Jul 2025
CVE-2025-34058 Hikvision Streaming Media Management Server Default Credentials and Authenticated Arbitrary File Read 8.7 high 0.88% 1 Jul 2025
CVE-2025-37098 Hewlett Packard Enterprise Insight Remote Support: Improper Limitation of a Pathname to a Restricted Directory 7.5 high 47.7% 1 Jul 2025
CVE-2025-6925 Dromara RuoYi-Vue-Plus Mail MailController.java path traversal 6.9 medium 1.15% 30 Jun 2025
CVE-2025-6866 code-projects Simple Forum forum_downloadfile.php path traversal 5.3 medium 0.62% 29 Jun 2025
CVE-2025-6855 chatchat-space Langchain-Chatchat file path traversal 5.1 medium 0.63% 29 Jun 2025
CVE-2025-6854 chatchat-space Langchain-Chatchat files path traversal 5.3 medium 0.62% 29 Jun 2025
CVE-2025-6853 chatchat-space Langchain-Chatchat Backend upload_temp_docs path traversal 5.3 medium 0.64% 29 Jun 2025
CVE-2025-6755 Game Users Share Buttons <= 1.3.0 - Authenticated (Subscriber+) Arbitrary File Deletion via themeNameId Parameter 8.8 high 0.95% 28 Jun 2025
CVE-2025-6379 BeeTeam368 Extensions Pro <= 2.3.4 - Authenticated (Subscriber+) Directory Traversal to Arbitrary File Deletion 8.8 high 0.78% 28 Jun 2025
CVE-2025-6776 xiaoyunjie openvpn-cms-flask File Upload controller.py upload path traversal 6.9 medium 0.78% 27 Jun 2025
CVE-2025-6774 gooaclok819 sublinkX template.go AddTemp path traversal 5.3 medium 0.45% 27 Jun 2025
CVE-2025-6773 HKUDS LightRAG File Upload document_routes.py upload_to_input_dir path traversal 4.8 medium 0.22% 27 Jun 2025
CVE-2025-6772 eosphoros-ai db-gpt import import_flow path traversal 6.9 medium 0.68% 27 Jun 2025
CVE-2025-53298 WordPress Plugin Inspector plugin <= 1.5 - Arbitrary File Download Vulnerability 4.9 medium 0.52% 27 Jun 2025
CVE-2025-24765 WordPress Image Shadow plugin <= 1.1.0 - Arbitrary File Deletion Vulnerability 7.7 high 0.50% 27 Jun 2025
CVE-2025-49448 WordPress FW Food Menu plugin <= 6.0.0 - Arbitrary File Deletion Vulnerability 8.6 high 0.55% 27 Jun 2025
CVE-2025-6731 yzcheng90 X-SpringBoot APK File apk uploadApk path traversal 5.3 medium 0.54% 26 Jun 2025
CVE-2025-34047 Leadsec VPN Path Traversal Arbitrary File Read 8.7 high 0.74% 26 Jun 2025
CVE-2025-34048 D-Link DSL-2730U/2750U/2750E Path Traversal Arbitrary File Read 8.7 high 2.00% 26 Jun 2025
CVE-2025-34045 WeiPHP Path Traversal Arbitrary File Read 8.7 high 3.89% 26 Jun 2025
CVE-2025-3722 Trellix System Information Reporter: Improper Limitation of a Pathname to a Restricted Directory 0.0 none 0.19% 26 Jun 2025
CVE-2025-50350 PHPGurukul Pre-School Enrollment System Project v1.0 is vulnerable to Directory Traversal in manage-classes.php 5.4 medium 0.48% 26 Jun 2025
CVE-2025-6445 ServiceStack FindType Directory Traversal Remote Code Execution Vulnerability 8.1 high 1.20% 25 Jun 2025
CVE-2025-52569 GitHub.jl lacks validation for user-provided fields 6.6 medium 0.49% 25 Jun 2025
CVE-2025-49153 Path Traversal in MICROSENS NMP Web+ 9.3 critical 0.76% 25 Jun 2025
CVE-2025-50178 GitForge.jl lacks validation for user provided fields 6.6 medium 0.49% 25 Jun 2025
CVE-2025-52574 SysmonElixir path traversal in /read endpoint allows arbitrary file read 7.5 high 0.50% 24 Jun 2025
CVE-2025-34040 Seeyon Zhiyuan OA System Path Traversal File Upload 10.0 critical 16.0% 24 Jun 2025
CVE-2025-34031 Moodle LMS Jmol Plugin Path Traversal 8.7 high 6.62% 24 Jun 2025
CVE-2025-52562 Convey Panel Directory Traversal in LocaleController leading to Remote Code Execution 10.0 critical 1.83% 23 Jun 2025
CVE-2025-50349 PHPGurukul Pre-School Enrollment System Project V1.0 is vulnerable to Directory Traversal in update-teacher-pic.php 7.5 high 0.84% 23 Jun 2025
CVE-2025-50348 PHPGurukul Pre-School Enrollment System Project V1.0 is vulnerable to Directory Traversal in update-class-pic.php 7.5 high 0.86% 23 Jun 2025
CVE-2025-48026 A vulnerability in the WebApl component of Mitel OpenScape Xpressions through V7R1 FR5 HF43 P913 could allow an unauthenticated attacker… 7.5 high 0.58% 23 Jun 2025
CVE-2025-23092 Mitel OpenScape Accounting Management through V5 R1.1.0 could allow an authenticated attacker with administrative privileges to conduct… 7.2 high 0.90% 23 Jun 2025