Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-427 (对搜索路径元素未加控制) — Vulnerability Class 545

545 vulnerabilities classified as CWE-427 (对搜索路径元素未加控制). AI Chinese analysis included.

CWE-427 represents a critical input validation weakness where software relies on an uncontrolled search path to locate resources, allowing unintended actors to manipulate the lookup process. This vulnerability is typically exploited by attackers who place malicious executables or libraries in a directory that precedes legitimate system paths in the search order. When the application executes, it inadvertently loads the attacker-controlled code instead of the intended resource, leading to arbitrary code execution or privilege escalation. Developers mitigate this risk by strictly defining absolute paths for all resource lookups, ensuring that the search order is deterministic and immune to directory manipulation. Additionally, implementing secure environment variable handling and validating the integrity of loaded libraries further prevents attackers from hijacking the execution flow through path traversal techniques.

MITRE CWE Description
The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors. Although this weakness can occur with any type of resource, it is frequently introduced when a product uses a directory search path to find executables or code libraries, but the path contains a directory that can be modified by an attacker, such as "/tmp" or the current working directory. In Windows-based systems, when the LoadLibrary or LoadLibraryEx function is called with a DLL name that does not contain a fully qualified path, the function follows a search order that includes two path elements that might be uncontrolled: the directory from which the program has been loaded the current working directory In some cases, the attack can be conducted remotely, such as when SMB or WebDAV network shares are used. One or more locations in that path could include the Windows drive root or its subdirectories. This often exists in Linux-based code assuming the controlled nature of the root directory (/) or its subdirectories (/etc, etc), or a code that recursively accesses the parent directory. In Windows, the drive root and some of its subdirectories have weak permissions by default, which makes them uncontrolled. In some Unix-based systems, a PATH might be created that contains an empty element, e.g. by splicing an empty variable into the PATH. This empty element can be interpreted as equivalent to the current working directo…
Common Consequences (1)
Confidentiality, Integrity, AvailabilityExecute Unauthorized Code or Commands
Mitigations (5)
Architecture and Design, ImplementationHard-code the search path to a set of known-safe values (such as system directories), or only allow them to be specified by the administrator in a configuration file. Do not allow these settings to be modified by an external party. Be careful to avoid related weaknesses such as CWE-426 and CWE-428.
ImplementationWhen invoking other programs, specify those programs using fully-qualified pathnames. While this is an effective approach, code that uses fully-qualified pathnames might not be portable to other systems that do not use the same pathnames. The portability can be improved by locating the full-qualified paths in a centralized, easily-modifiable location within the source code, and having the code ref…
ImplementationRemove or restrict all environment settings before invoking other programs. This includes the PATH environment variable, LD_LIBRARY_PATH, and other settings that identify the location of code libraries, and any application-specific search paths.
ImplementationCheck your search path before use and remove any elements that are likely to be unsafe, such as the current working directory or a temporary files directory. Since this is a denylist approach, it might not be a complete solution.
ImplementationUse other functions that require explicit paths. Making use of any of the other readily available functions that require explicit paths is a safe way to avoid this problem. For example, system() in C does not require a full path since the shell can take care of finding the program using the PATH environment variable, while execl() and execv() require a full path.
Examples (2)
The following code is from a web application that allows users access to an interface through which they can update their password on the system. In this environment, user passwords can be managed using the Network Information System (NIS), which is commonly used on UNIX systems. When performing NIS updates, part of the process for updating passwords is to run a make command in the /var/yp directo…
... System.Runtime.getRuntime().exec("make"); ...
Bad · Java
In versions of Go prior to v1.19, the LookPath function would follow the conventions of the runtime OS and look for a program in the directiories listed in the current path [REF-1325].
func ExecuteGitCommand(name string, arg []string) error { c := exec.Command(name, arg...) var err error c.Path, err = exec.LookPath(name) if err != nil { return err } }
Bad · Go
CVE IDTitleCVSSSeverityPublished
CVE-2025-30167 Jupyter Core on Windows Has Uncontrolled Search Path Element Local Privilege Escalation Vulnerability — jupyter_core 7.3 High2025-06-03
CVE-2024-42191 HCL Traveler for Microsoft Outlook (HTMO) is susceptible to COM hijacking — HCL Traveler for Microsoft Outlook (HTMO) 6.5 Medium2025-05-30
CVE-2024-42190 HCL Traveler for Microsoft Outlook (HTMO) is susceptible to DLL hijacking — HCL Traveler for Microsoft Outlook (HTMO) 6.5 Medium2025-05-30
CVE-2025-5180 Wondershare Filmora Installer NFWCHK.exe uncontrolled search path — Filmora 7.0 High2025-05-26
CVE-2025-5129 Sangfor 零信任访问控制系统 aTrust MSASN1.dll uncontrolled search path — 零信任访问控制系统 aTrust 7.0 High2025-05-24
CVE-2024-13946 Binary Planting / LoadLibrary DLL's not Signed — ASPECT-Enterprise 6.8 Medium2025-05-22
CVE-2025-2272 Privilege Escalation and Arbitrary code execution in F1E Endpoint — FIE Endpoint 7.0 High2025-05-22
CVE-2025-4769 CBEWIN Anytxt Searcher ATService.exe uncontrolled search path — Anytxt Searcher 7.0 High2025-05-16
CVE-2025-43553 Substance3D - Modeler | Uncontrolled Search Path Element (CWE-427) — Substance3D - Modeler 7.8 High2025-05-13
CVE-2025-32917 Privilege escalation in jar_signature — Checkmk 7.8AIHighAI2025-05-13
CVE-2025-35471 conda-forge openssl-feedstock writable OPENSSLDIR — openssl-feedstock 7.3 High2025-05-13
CVE-2025-4539 Hainan ToDesk DLL File Parser profapi.dll uncontrolled search path — ToDesk 7.0 High2025-05-11
CVE-2025-4532 Shanghai Bairui Information Technology SunloginClient sunlogin_guard.exe uncontrolled search path — SunloginClient 7.0 High2025-05-11
CVE-2025-4525 Discord WINSTA.dll uncontrolled search path — Discord 7.0 High2025-05-10
CVE-2025-4455 Patch My PC Home Updater System.IO uncontrolled search path — Home Updater 7.0 High2025-05-09
CVE-2025-4272 Mechrevo Control Console GCUService csCAPI.dll uncontrolled search path — Control Console 7.0 High2025-05-05
CVE-2025-23177 Ribbon Communications - CWE-427: Uncontrolled Search Path Element — Apollo 9608 7.6 High2025-04-29
CVE-2025-2769 Bdrive NetDrive Uncontrolled Search Path Element Local Privilege Escalation Vulnerability — NetDrive 7.8 -2025-04-23
CVE-2025-2768 Bdrive NetDrive Uncontrolled Search Path Element Local Privilege Escalation Vulnerability — NetDrive 7.8 -2025-04-23
CVE-2024-12530 Insecure Dynamic-Link Library (DLL) Load vulnerability — Secure Content Manager 7.8AIHighAI2025-04-17
CVE-2025-32780 BleachBit for Windows Has DLL Untrusted Path Vulnerability — bleachbit 7.3 High2025-04-15
CVE-2025-29817 Microsoft Power Automate Desktop Information Disclosure Vulnerability — Power Automate for Desktop 5.7 Medium2025-04-15
CVE-2025-29803 Visual Studio Tools for Applications and SQL Server Management Studio Elevation of Privilege Vulnerability — SQL Server Management Studio 20.2 7.3 High2025-04-12
CVE-2025-2630 DLL Hijacking Vulnerability in NI LabVIEW — LabVIEW 7.3 High2025-04-09
CVE-2025-2629 DLL Hijacking Vulnerability in NI LabVIEW When Loading NI Error Reporting — LabVIEW 7.3 High2025-04-09
CVE-2025-29802 Visual Studio Elevation of Privilege Vulnerability — Microsoft Visual Studio 2022 version 17.10 7.3 High2025-04-08
CVE-2025-22458 Ivanti Endpoint Manager 代码问题漏洞 — Endpoint Manager 7.8 High2025-04-08
CVE-2024-11859 DLL Search Order Hijacking in ESET products for Windows — ESET NOD32 Antivirus 6.5AIMediumAI2025-04-07
CVE-2025-3051 Linux::Statm::Tiny for Perl allows untrusted code to be included from the current working directory — Linux::Statm::Tiny 8.8 -2025-04-01
CVE-2025-30673 Sub::HandlesVia for Perl allows untrusted code to be included from the current working directory — Sub::HandlesVia 8.8 -2025-04-01

Vulnerabilities classified as CWE-427 (对搜索路径元素未加控制) represent 545 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.