目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CWE-426 不可信的搜索路径 类漏洞列表 283

CWE-426 不可信的搜索路径 类弱点 283 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-426 属于不信任搜索路径漏洞,指程序使用外部提供的路径查找关键资源,导致可能访问不受控的文件。攻击者常通过操纵环境变量或配置,将恶意程序或数据注入搜索路径,从而执行任意代码或窃取敏感信息。开发者应避免使用动态搜索路径,改用硬编码的绝对路径,或严格验证路径来源及权限,确保仅加载受信任目录下的资源,以阻断攻击链。

MITRE CWE 官方描述
CWE:CWE-426 不受信任的搜索路径 (Untrusted Search Path) 英文:该产品使用外部提供的搜索路径来搜索关键资源,该路径可能指向不受该产品直接控制的资源。 这可能导致攻击者执行其自己的程序、访问未经授权的数据文件或以意外方式修改配置。如果产品使用搜索路径来定位关键资源(如程序),则攻击者可以修改该搜索路径以指向恶意程序,目标产品随后将执行该程序。此问题扩展到产品所信任的任何类型的关键资源。不受信任的搜索路径的一些最常见变体包括:在各种 UNIX 和基于 Linux 的系统中,可能会查阅 PATH 环境变量来定位可执行程序,并使用 LD_PRELOAD 来定位单独的库。在各种基于 Microsoft 的系统中,如果未在其他出现在搜索顺序前面的路径中找到 DLL,则会查阅 PATH 环境变量来定位 DLL。
常见影响 (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.
缓解措施 (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.
代码示例 (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 标题 CVSS 风险等级 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 本地代码执行漏洞 — nltk 7.8 High 2026-11-13
CVE-2026-126793 AWS Advanced Go Wrapper 权限提升漏洞 — aws-advanced-go-wrapper 8.0 High 2026-11-12
CVE-2026-116313 PostgreSQL vacuumdb 远程代码执行漏洞 — PostgreSQL 7.2 High 2026-11-12
CVE-2026-0327 PAN-OS GlobalProtect 权限提升漏洞 — Cloud NGFW 2.3 Low 2026-11-11
CVE-2026-48402 Premiere Pro 不可信搜索路径漏洞 — Premiere 7.8 High 2026-11-10
CVE-2026-126087 OpenJD Sessions Python 跨用户进程启动器不安全搜索路径漏洞 — openjd-sessions 8.8 High 2026-11-10
CVE-2026-119853 远程访问 API 提权漏洞 — Windows 10 Version 1607 7.8 High 2026-11-10
CVE-2026-119839 Windows 远程桌面客户端提权漏洞 — Windows 11 version 23H2 8.8 High 2026-11-10
CVE-2026-119987 Windows 应用商店提权漏洞 — Windows 10 Version 21H2 7.8 High 2026-11-10
CVE-2026-105494 Azure NFS 挂载助手提升权限漏洞 — aznfs 7.8 High 2026-11-10
CVE-2026-70094 Visual Studio Code 远程代码执行漏洞 — Visual Studio Code 8.8 High 2026-11-10
CVE-2026-119333 draw.io Desktop Windows 可执行文件搜索路径劫持漏洞 — drawio-desktop 7.8 High 2026-10-30
CVE-2026-116243 pgAdmin 4 工具二进制路径指向共享存储目录漏洞 — pgAdmin 4 7.5 High 2026-10-30
CVE-2026-57203 Asterisk 18.0.0 本地提权漏洞 — 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 Oracle Home 本地提权漏洞 — Checkmk 5.2 Medium 2026-10-21
CVE-2026-0315 GlobalProtect App macOS 本地提权漏洞 — GlobalProtect App 5.9 Medium 2026-10-14
CVE-2026-103847 Dimension 不受信任搜索路径漏洞 — Adobe Dimension 8.6 High 2026-10-13
CVE-2026-83506 Servicing Stack 提权漏洞 — Windows 10 Version 1607 7.8 High 2026-10-13
CVE-2026-83509 Windows 安装文件清理提权漏洞 — Windows 10 Version 1607 7.0 High 2026-10-13
CVE-2026-69733 Windows Update 权限提升漏洞 — Windows 11 version 23H2 7.8 High 2026-10-13
CVE-2026-69882 Windows Update 提权漏洞 — Windows 11 version 23H2 7.8 High 2026-10-13
CVE-2026-70142 Windows Update Service 权限提升漏洞 — Windows 11 version 23H2 7.8 High 2026-10-13
CVE-2026-108398 .NET Framework 安全功能绕过漏洞 — 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 InstallShield 潜在权限提升漏洞 — InstallShield 5.4 Medium 2026-10-13

CWE-426(不可信的搜索路径) 是常见的弱点类别,本平台收录该类弱点关联的 283 条 CVE 漏洞。