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

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

283 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-2026-134452 Dockhand before 1.0.57 RCE via PATH Poisoning in Stack Deploy — dockhand 8.8 High 2026-11-21
CVE-2026-132660 CVE-2026-132660 — Postgres Enterprise Manager 9.4 Critical 2026-11-20
CVE-2026-129234 NLTK: Untrusted search path in prover9/mace4 config allows local code execution via relative binary_location — nltk 7.3 High 2026-11-19
CVE-2026-112115 CVE-2026-112115 — Armoury Crate 8.5 High 2026-11-18
CVE-2026-82146 Dell SupportAssist OS Recovery 5.5.16.3前路径漏洞 — SupportAssist OS Recovery 7.8 High 2026-11-17
CVE-2026-128134 NLTK dot2img runs Graphviz 'dot' without the trusted-exec chokepoint, enabling local code execution via a writable PATH element — nltk 7.8 High 2026-11-13
CVE-2026-126793 Privilege escalation in Aurora PostgreSQL dialect detection in AWS Advanced Go Wrapper — aws-advanced-go-wrapper 8.0 High 2026-11-12
CVE-2026-116313 PostgreSQL "vacuumdb --missing-stats-only" lets a database owner execute code as the vacuumdb user — PostgreSQL 7.2 High 2026-11-12
CVE-2026-0327 PAN-OS: Privilege Escalation Vulnerability in GlobalProtect — Cloud NGFW 2.3 Low 2026-11-11
CVE-2026-48402 Premiere Pro | Untrusted Search Path (CWE-426) — Premiere 7.8 High 2026-11-10
CVE-2026-126087 Untrusted search path in the cross-user process launcher in OpenJD Sessions for Python, as used in the AWS Deadline Cloud worker agent — openjd-sessions 8.8 High 2026-11-10
CVE-2026-119853 Remote Access API Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.8 High 2026-11-10
CVE-2026-119839 Windows Remote Desktop Client Elevation of Privilege Vulnerability — Windows 11 version 23H2 8.8 High 2026-11-10
CVE-2026-119987 Microsoft Windows App Store Elevation of Privilege Vulnerability — Windows 10 Version 21H2 7.8 High 2026-11-10
CVE-2026-105494 Azure NFS mount helper (aznfs) Elevation of Privilege Vulnerability — aznfs 7.8 High 2026-11-10
CVE-2026-70094 Visual Studio Code Remote Code Execution Vulnerability — Visual Studio Code 8.8 High 2026-11-10
CVE-2026-119333 draw.io Desktop allows Windows executable search-path hijacking — drawio-desktop 7.8 High 2026-10-30
CVE-2026-116243 pgAdmin 4: Utility binary path can point at a shared storage directory — pgAdmin 4 7.5 High 2026-10-30
CVE-2026-57203 Asterisk: Local privilege escalation through ast_loggrabber's world-writable helper location — asterisk 6.9 Medium 2026-10-27
CVE-2026-105477 Veeam Agent for Linux 本地提权漏洞 — Agent for Linux 7.3 High 2026-10-27
CVE-2026-113461 mk-oracle: Local privilege escalation via insecure Oracle Home library loading — Checkmk 5.2 Medium 2026-10-21
CVE-2026-0315 GlobalProtect App: Local Privilege Escalation Vulnerability on macOS — GlobalProtect App 5.9 Medium 2026-10-14
CVE-2026-103847 Dimension | Untrusted Search Path (CWE-426) — Adobe Dimension 8.6 High 2026-10-13
CVE-2026-83506 Servicing Stack Updates Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.8 High 2026-10-13
CVE-2026-83509 Windows Setup Files Cleanup Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.0 High 2026-10-13
CVE-2026-69733 Windows Update Elevation of Privilege Vulnerability — Windows 11 version 23H2 7.8 High 2026-10-13
CVE-2026-69882 Windows Update Elevation of Privilege Vulnerability — Windows 11 version 23H2 7.8 High 2026-10-13
CVE-2026-70142 Windows Update Service Elevation of Privilege Vulnerability — Windows 11 version 23H2 7.8 High 2026-10-13
CVE-2026-108398 .NET Framework Security Feature Bypass Vulnerability — Microsoft .NET Framework 3.5 AND 4.6.2/4.7/4.7.1/4.7.2 8.8 High 2026-10-13
CVE-2026-4869 Potential Privilege Escalation in InstallShield — InstallShield 5.4 Medium 2026-10-13

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