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-12852 NEC RakurakuMusen Start EX 安全漏洞 — RakurakuMusen Start EX 7.8AIHighAI2025-11-19
CVE-2025-10089 Malicious Code Execution Vulnerability in Setting and Operation Application for Lighting Control System MILCO.S — MILCO.S Setting Application 7.7 High2025-11-18
CVE-2025-40827 Siemens Software Center和Siemens Solid Edge SE2025 代码问题漏洞 — Siemens Software Center 7.8 High2025-11-11
CVE-2025-40763 Siemens Altair Grid Engine 代码问题漏洞 — Altair Grid Engine 7.8 High2025-11-11
CVE-2025-23358 NVIDIA NVApp 代码问题漏洞 — NVApp 8.2 High2025-11-04
CVE-2025-11761 HP Client Management Script Library – Security Update — HP Client Management Script Library 7.8AIHighAI2025-11-03
CVE-2025-62776 WTW EAGLE 代码问题漏洞 — WTW EAGLE (for Windows) 7.8AIHighAI2025-10-29
CVE-2025-10939 Org.keycloak/keycloak-quarkus-server: unable to restrict access to the admin console — keycloak 3.7 Low2025-10-28
CVE-2025-9164 Multiple DLL Search Order Hijacking Vulnerabilities in Docker Desktop Installer for Windows — Docker Desktop 7.8AIHighAI2025-10-27
CVE-2025-11940 LibreWolf Installer setup.nsi uncontrolled search path — LibreWolf 7.0 High2025-10-19
CVE-2025-10581 Lenovo PC Manager 安全漏洞 — PC Manager 7.8 High2025-10-15
CVE-2025-26861 RSUPPORT RemoteCall Remote Support Program 代码问题漏洞 — RemoteCall Remote Support Program (for Operator) 7.8AIHighAI2025-10-15
CVE-2025-26860 RSUPPORT RemoteCall Remote Support Program 代码问题漏洞 — RemoteCall Remote Support Program (for Operator) 7.8AIHighAI2025-10-15
CVE-2025-26859 RSUPPORT RemoteView PC Application Console 代码问题漏洞 — RemoteView PC Application Console 7.8AIHighAI2025-10-15
CVE-2025-57716 Fortinet FortiClientWindows 代码问题漏洞 — FortiClientWindows 6.0 Medium2025-10-14
CVE-2025-59889 Eaton IPP 安全漏洞 — Eaton IPP software 8.6 High2025-10-14
CVE-2025-23309 NVIDIA Display Driver 代码问题漏洞 — GeForce 8.2 High2025-10-10
CVE-2025-32919 Privilege Escalation in Windows License plugin for Checkmk Windows Agent — Checkmk 7.8AIHighAI2025-10-09
CVE-2025-62185 Ankitects Anki 代码问题漏洞 — Anki 6.7 Medium2025-10-07
CVE-2025-57781 DENSO TEN Drive Recorder Viewer 代码问题漏洞 — Multiple installers of DENSO TEN drive recorder viewer 7.8AIHighAI2025-10-06
CVE-2025-27237 DLL injection in Zabbix Agent and Agent 2 via OpenSSL configuration — Zabbix 7.8AIHighAI2025-10-03
CVE-2025-11223 Panasonic AutoDownloader 安全漏洞 — AutoDownloader 7.8 High2025-10-03
CVE-2025-23355 NVIDIA Nsight Graphics for Windows 代码问题漏洞 — Nsight Graphics 6.7 Medium2025-10-01
CVE-2025-11178 Acronis True Image 代码问题漏洞 — Acronis True Image 7.8AIHighAI2025-09-30
CVE-2025-9267 Seagate Toolkit 安全漏洞 — Toolkit 7.8 -2025-09-26
CVE-2025-9844 Salesforce CLI 安全漏洞 — Salesforce CLI 6.5AIMediumAI2025-09-23
CVE-2025-1131 Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation — Asterisk 7.8AIHighAI2025-09-23
CVE-2025-9201 Lenovo Browser 安全漏洞 — Browser 7.8 High2025-09-11
CVE-2025-9059 Elevation of Privileges Vulnerability in IT Management Suite — 8.6.IT Management Suite 7.8AIHighAI2025-09-11
CVE-2025-10215 DLL search path hijacking vulnerability — UPDF 7.3AIHighAI2025-09-10

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