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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

194 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 ControlGain Privileges or Assume Identity, Execute Unauthorized Code or Commands
There is the potential for arbitrary code execution with privileges of the vulnerable program.
AvailabilityDoS: 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.
ConfidentialityRead Files or Directories
The program could send the output of unauthorized files to the attacker.
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.
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 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 IDTitleCVSSSeverityPublished
CVE-2025-1756 MongoDB Shell may be susceptible to local privilege escalation in Windows — mongosh 7.5 High2025-02-27
CVE-2025-1755 MongoDB Compass may be susceptible to local privilege escalation in Windows — MongoDB Compass 7.5 High2025-02-27
CVE-2025-1068 There is a code injection vulnerability in Esri ArcGIS AllSource — ArcGIS AllSource 7.3 High2025-02-25
CVE-2025-26624 Local Privilege Escalation in Rufus 4.6 and previous versions — rufus 7.8 -2025-02-18
CVE-2025-1353 Kong Insomnia profapi.dll untrusted search path — Insomnia 7.0 High2025-02-16
CVE-2024-3220 Default mimetype known files writeable on Windows — CPython 5.5 -2025-02-14
CVE-2025-24828 Acronis Cyber Protect Cloud Agent 代码问题漏洞 — Acronis Cyber Protect Cloud Agent 7.8 -2025-01-31
CVE-2025-24827 Acronis Cyber Protect Cloud Agent 代码问题漏洞 — Acronis Cyber Protect Cloud Agent 7.8 -2025-01-31
CVE-2025-24829 Acronis Cyber Protect Cloud Agent 代码问题漏洞 — Acronis Cyber Protect Cloud Agent 7.8 -2025-01-31
CVE-2025-24830 Acronis Cyber Protect Cloud Agent 代码问题漏洞 — Acronis Cyber Protect Cloud Agent 7.8 -2025-01-31
CVE-2025-0145 Zoom Workplace Apps for Windows - Untrusted Search Path — Zoom Workplace Apps for Windows 4.6 Medium2025-01-30
CVE-2025-24789 Snowflake JDBC allows an untrusted search path on Windows — snowflake-jdbc 7.8 High2025-01-29
CVE-2025-0733 Postman profapi.dll untrusted search path — Postman 4.5 Medium2025-01-27
CVE-2025-0732 Discord profapi.dll untrusted search path — Discord 4.5 Medium2025-01-27
CVE-2025-0707 Rise Group Rise Mode Temp CPU Startup CRYPTBASE.dll untrusted search path — Rise Mode Temp CPU 7.8 High2025-01-24
CVE-2024-13524 obsproject OBS Studio untrusted search path — OBS Studio 4.5 Medium2025-01-20
CVE-2025-0567 Epic Games Launcher Installer profapi.dll untrusted search path — Launcher 4.5 Medium2025-01-19
CVE-2025-21399 Microsoft Edge (Chromium-based) Update Elevation of Privilege Vulnerability — Microsoft Edge Update Setup 7.4 High2025-01-17
CVE-2020-8094 Untrusted Search Path Vulnerability in Bitdefender Antivirus Free 2020 (VA-8422) — Antivirus Free 2020 7.3 -2025-01-15
CVE-2025-21365 Microsoft Office Remote Code Execution Vulnerability — Microsoft 365 Apps for Enterprise 7.8 High2025-01-14
CVE-2024-13158 Ivanti EPM 安全漏洞 — Endpoint Manager 7.2 High2025-01-14
CVE-2025-0459 libretro RetroArch Startup profapi.dll untrusted search path — RetroArch 5.3 Medium2025-01-14
CVE-2024-53866 pnpm vulnerable to no-script global cache poisoning via overrides / `ignore-scripts` evasion — pnpm 9.8 -2024-12-10
CVE-2024-11454 Untrusted Search Path vulnerability in Autodesk Revit — Revit 7.8 High2024-12-09
CVE-2023-1521 Local Privilege Escalation in sccache — sccache 7.4 -2024-11-26
CVE-2024-49515 Substance3D - Painter | Untrusted Search Path (CWE-426) — Substance3D - Painter 7.8 High2024-11-12
CVE-2024-36507 Fortinet FortiClientWindows 安全漏洞 — FortiClientWindows 6.7 High2024-11-12
CVE-2024-49043 Microsoft.SqlServer.XEvent.Configuration.dll Remote Code Execution Vulnerability — Microsoft SQL Server 2017 (GDR) 7.8 High2024-11-12
CVE-2024-7995 Autodesk VRED Design Privilege Escalation Vulnerability — VRED Design 7.8 High2024-11-05
CVE-2023-32266 Code injection vulnerability found in OpenText Application Lifecycle Management (ALM),Quality Center. — Application Lifecycle Management (ALM),Quality Center 7.3AIHighAI2024-10-16

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