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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-426 (不可信的搜索路径) — Vulnerability Class 249

249 vulnerabilities classified as CWE-426 (不可信的搜索路径). AI Chinese analysis included.

CWE-426 represents a critical input validation weakness where software relies on an externally-supplied search path to locate essential resources, such as executables or configuration files, rather than using absolute paths or trusted directories. Attackers typically exploit this vulnerability by manipulating the environment variable or system path to point to malicious code placed in a directory with higher precedence than the legitimate resource location. This allows them to execute arbitrary programs, access unauthorized data, or alter configurations unexpectedly, effectively achieving privilege escalation or remote code execution. To prevent this, developers must enforce strict path validation, utilize absolute paths for critical resources, and implement secure coding practices that restrict search directories to trusted, controlled locations. Additionally, applying the principle of least privilege ensures that even if an attacker manipulates the path, they cannot execute harmful code due to insufficient permissions.

MITRE CWE Description
The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. This might allow attackers to execute their own programs, access unauthorized data files, or modify configuration in unexpected ways. If the product uses a search path to locate critical resources such as programs, then an attacker could modify that search path to point to a malicious program, which the targeted product would then execute. The problem extends to any type of critical resource that the product trusts. Some of the most common variants of untrusted search path are: In various UNIX and Linux-based systems, the PATH environment variable may be consulted to locate executable programs, and LD_PRELOAD may be used to locate a separate library. In various Microsoft-based systems, the PATH environment variable is consulted to locate a DLL, if the DLL is not found in other paths that appear earlier in the search order.
Common Consequences (3)
Integrity, Confidentiality, Availability, Access Control Gain Privileges or Assume Identity, Execute Unauthorized Code or Commands
There is the potential for arbitrary code execution with privileges of the vulnerable program.
Availability DoS: Crash, Exit, or Restart
The program could be redirected to the wrong files, potentially triggering a crash or hang when the targeted file is too large or does not have the expected format.
Confidentiality Read Files or Directories
The program could send the output of unauthorized files to the attacker.
Mitigations (5)
Architecture and Design, Implementation Hard-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.
Implementation When 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…
Implementation Remove 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.
Implementation Check 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.
Implementation Use 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 it, while execl() and execv() require a full path.
Examples (2)
This program is intended to execute a command that lists the contents of a restricted directory, then performs other actions. Assume that it runs with setuid privileges in order to bypass the permissions check by the operating system.
#define DIR "/restricted/directory" char cmd[500]; sprintf(cmd, "ls -l %480s", DIR); /* Raise privileges to those needed for accessing DIR. */ RaisePrivileges(...); system(cmd); DropPrivileges(...); ...
Bad · C
The user sets the PATH to reference a directory under the attacker's control, such as "/my/dir/". The attacker creates a malicious program called "ls", and puts that program in /my/dir The user executes the program. When system() is executed, the shell consults the PATH to find the ls program The program finds the attacker's malicious program, "/my/dir/ls". It doesn't find "/bin/ls" because PATH does not contain "/bin/". The program executes the attacker's malicious program with the raised privileges.
Attack
The following code from a system utility uses the system property APPHOME to determine the directory in which it is installed and then executes an initialization script based on a relative path from the specified directory.
... String home = System.getProperty("APPHOME"); String cmd = home + INITCMD; java.lang.Runtime.getRuntime().exec(cmd); ...
Bad · Java
CVE ID Title CVSS Severity Published
CVE-2024-44103 Ivanti Workspace Control 安全漏洞 — Workspace Control 8.8 High 2024-09-10
CVE-2024-45281 DLL hijacking vulnerability in SAP BusinessObjects Business Intelligence Platform — SAP BusinessObjects Business Intelligence Platform 5.8 Medium 2024-09-10
CVE-2024-6473 DLL Hijacking in Yandex Browser — Browser 7.8AI High AI 2024-09-03
CVE-2024-38305 Dell SupportAssist for Home PCs 代码问题漏洞 — SupportAssist for Home PCs 7.3 High 2024-08-21
CVE-2024-42439 Zoom Workplace Desktop App for macOS and Zoom Meeting SDK for macOS - Untrusted Search Path — Zoom Workplace Desktop App for macOS and Zoom Meeting SDK for macOS 6.5 Medium 2024-08-14
CVE-2024-41865 Adobe Dimension Untrusted Search Path lead to load malicious DLL swift.dll — Dimension 7.8 High 2024-08-14
CVE-2024-6975 Cato Networks Windows SDP Client Local Privilege Escalation via openssl configuration file — SDP Client 8.8 High 2024-07-31
CVE-2024-6974 Cato Networks Windows SDP Client Local Privilege Escalation via self-upgrade — SDP Client 8.8 High 2024-07-31
CVE-2024-34123 Adobe Premiere Pro arbitrary DLL loading lead to remote code execution — Premiere Pro 7.0 High 2024-07-09
CVE-2024-35260 Microsoft Dataverse Remote Code Execution Vulnerability — Microsoft Power Platform 8.0 High 2024-06-27
CVE-2024-30100 Microsoft SharePoint Server Remote Code Execution Vulnerability — Microsoft SharePoint Enterprise Server 2016 7.8 High 2024-06-11
CVE-2024-28133 PHOENIX CONTACT: Privilege escalation in CHARX Series — CHARX SEC-3000 7.8 High 2024-05-14
CVE-2024-32019 ndsudo: local privilege escalation via untrusted search path — netdata 8.8 High 2024-04-12
CVE-2024-20693 Windows Kernel Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.8 High 2024-04-09
CVE-2024-20754 Lightroom Desktop | Untrusted Search Path (CWE-426) — Lightroom Desktop 7.8 High 2024-03-18
CVE-2024-21435 Windows OLE Remote Code Execution Vulnerability — Windows 11 version 22H2 8.8 High 2024-03-12
CVE-2024-26198 Microsoft Exchange Server Remote Code Execution Vulnerability — Microsoft Exchange Server 2019 Cumulative Update 14 8.8 High 2024-03-12
CVE-2024-27303 electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only) — electron-builder 7.3 High 2024-03-06
CVE-2024-25103 Dynamic Link Library (DLL) Hijacking Vulnerability in CDAC AppSamvid Software — AppSamvid Software 6.3 Medium 2024-03-06
CVE-2024-24697 Zoom Clients - Untrusted Search Path — Zoom Clients 7.2 High 2024-02-13
CVE-2024-24810 WiX is vulnerable to DLL redirection attacks that allow the attacker to escalate privileges — issues 8.3 High 2024-02-07
CVE-2021-4435 Yarn: untrusted search path — yarn 7.7 High 2024-02-04
CVE-2024-22410 Binary Planting Attack on Windows Platforms in Creditcoin — creditcoin 3.3 Low 2024-01-17
CVE-2024-22190 Untrusted search path under some conditions on Windows allows arbitrary code execution — GitPython 7.8 High 2024-01-11
CVE-2024-21325 Microsoft Printer Metadata Troubleshooter Tool Remote Code Execution Vulnerability — Microsoft Printer Metadata Troubleshooter Tool 7.8 High 2024-01-09
CVE-2023-48670 Dell SupportAssist for Home PCs 安全漏洞 — SupportAssist Client Consumer 7.3 High 2023-12-22
CVE-2023-43586 Zoom VDI Client 安全漏洞 — Zoom Desktop Client for Windows, Zoom VDI Client for Windows and Zoom SDKs for Windows 7.3 High 2023-12-13
CVE-2023-36003 XAML Diagnostics Elevation of Privilege Vulnerability — Windows 10 Version 1809 6.7 Medium 2023-12-12
CVE-2023-26031 Privilege escalation in Apache Hadoop Yarn container-executor binary on Linux systems — Apache Hadoop 7.8 - 2023-11-16
CVE-2023-39202 Zoom Rooms和Zoom VDI Client 代码问题漏洞 — Zoom Rooms Client for Windows and Zoom VDI Client 3.1 Low 2023-11-14

Vulnerabilities classified as CWE-426 (不可信的搜索路径) represent 249 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.