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

Goal: 1000 CNY · Raised: 1310 CNY

100%

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

567 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-2026-11967 Arbitrary code execution in MobaXterm Personal Edition (Portable) — MobaXterm Personal Edition (Portable)--2026-06-12
CVE-2026-11879 Arbitrary code execution in MobaXterm Personal Edition (Portable) — MobaXterm Personal Edition (Portable)--2026-06-12
CVE-2026-53813 OpenClaw < 2026.4.25 - Arbitrary Artifact Loading via Fake Package Root Resolution — OpenClaw 7.8 High2026-06-11
CVE-2026-7870 IBM i is Affected by Privilege Escalation [] — i 8.8 High2026-06-11
CVE-2026-10847 Local Privilege Escalation vulnerability in Check Point Identity Agent Full for Windows OS — Identity Agent 7.8 High2026-06-11
CVE-2026-8637 LanSchool Classic 客户端未受控搜索路径漏洞 — LanSchool Classic 7.8 High2026-06-10
CVE-2026-47937 Acrobat Reader | Uncontrolled Search Path Element (CWE-427) — Acrobat Reader 7.4 High2026-06-09
CVE-2026-41567 Docker: `PUT /containers/{id}/archive` executes container binary on the host — moby/v2/daemon 7.2 High2026-06-05
CVE-2026-44682 Acronis DeviceLock DLP DLL劫持提权漏洞 — Acronis DeviceLock DLP--2026-06-03
CVE-2026-50033 Acronis DeviceLock DLP本地提权漏洞 — Acronis DeviceLock DLP--2026-06-03
CVE-2026-44609 Acronis DeviceLock DLP提权漏洞 — Acronis DeviceLock DLP--2026-06-03
CVE-2026-44358 Espressif Shared GitHub DangerJS: Untrusted Search Path in DangerJS Action Entrypoint — shared-github-dangerjs 8.2 High2026-05-28
CVE-2026-47274 pam_usb: Uncontrolled search path in pam_usb tools allows privilege escalation via PATH manipulation — pam_usb 6.3 Medium2026-05-27
CVE-2023-52945 Synology BeeDrive 代码问题漏洞 — BeeDrive for desktop 7.8 High2026-05-27
CVE-2025-41670 Untrusted Search Path — AXC F 1152 7.8 High2026-05-27
CVE-2025-14575 Uncontrolled Search Path Element in Qt Network OpenSSL TLS backend allows rogue CA certificate loading — Qt--2026-05-19
CVE-2026-32323 Mullvad VPN for macOS: Local Privilege Escalation via unverified bundle path in installer — mullvadvpn-app 7.3 High2026-05-19
CVE-2026-47092 Claude HUD 0.0.12 Arbitrary Command Execution via COMSPEC Environment Variable — claude-hud 7.8 High2026-05-18
CVE-2025-62628 AMD AIM-T Manageability Service 代码问题漏洞 — AIM-T Manageability Service--2026-05-14
CVE-2024-47091 Privilege escalation via mk_mysql agent plugin on Windows — Checkmk--2026-05-13
CVE-2026-44612 Bytello Share 代码问题漏洞 — Bytello Share (Windows Edition) installer executable--2026-05-13
CVE-2026-45004 OpenClaw < 2026.4.23 - Arbitrary Code Execution via setup-api.js in Current Working Directory — OpenClaw 7.8 High2026-05-11
CVE-2026-44406 DLL Hijacking Vulnerability in ZTE Cloud PC Client uSmartview — ZXCLOUD iRAI 5.7 Medium2026-05-07
CVE-2026-40004 openssl.cnf Privilege Escalation Vulnerability in ZTE Cloud PC Client uSmartview — ZXCLOUD iRAI 5.5 Medium2026-05-07
CVE-2026-21661 AC2000 Uncontrolled Search Path Element — AC2000 6.6AIMediumAI2026-05-06
CVE-2026-6788 Uncontrolled search path in PluginLauncher allows SYSTEM code execution in WatchGuard Agent — WatchGuard Agent 7.3AIHighAI2026-05-06
CVE-2026-25852 Acronis DeviceLock DLP 代码问题漏洞 — Acronis DeviceLock DLP 7.8AIHighAI2026-04-29
CVE-2026-41373 OpenClaw < 2026.3.31 - Compiler Binary Substitution via Environment Variable Override in Host Execution Policy — OpenClaw 6.1 Medium2026-04-28
CVE-2026-7279 eMPIA Technology|AVACAST - DLL Hijacking — AVACAST 7.8 High2026-04-28
CVE-2026-42171 NSIS 代码问题漏洞 — Nullsoft Scriptable Install System 7.8 High2026-04-24

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