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

目标: 1000 元 · 已筹: 1336

100%

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

CWE-426 不可信的搜索路径 类弱点 229 条 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-78155 StackGres 不受信任搜索路径漏洞 — StackGres 9.9 Critical 2026-08-23
CVE-2026-55769 CloudNativePG 搜索路径缺失导致权限提升漏洞 — cloudnative-pg 9.4 Critical 2026-08-20
CVE-2026-16869 IBM AIX 权限许可和访问控制问题漏洞 — AIX 7.8 High 2026-08-19
CVE-2026-74872 jahlives openssl_encrypt 权限许可和访问控制问题漏洞 — openssl_encrypt 9.8 Critical 2026-08-17
CVE-2026-16674 IBM i 权限许可和访问控制问题漏洞 — i 8.8 High 2026-08-13
CVE-2026-14875 IBM i Access Client Solutions 权限许可和访问控制问题漏洞 — i Access Client Solutions 7.3 High 2026-08-13
CVE-2026-14673 PostgreSQL 权限许可和访问控制问题漏洞 — PostgreSQL 3.8 Low 2026-08-13
CVE-2026-0299 Palo Alto Networks globalprotect app 权限许可和访问控制问题漏洞 — GlobalProtect App 5.9 Medium 2026-08-13
CVE-2026-56174 Microsoft Windows Narrator Braille 权限许可和访问控制问题漏洞 — Windows 10 Version 1809 7.8 High 2026-08-11
CVE-2026-41447 Zucchetti FirmaCheck 权限许可和访问控制问题漏洞 — FirmaCheck 7.8 High 2026-08-03
CVE-2026-47211 Q00 Ouroboros 权限许可和访问控制问题漏洞 — ouroboros 8.4 High 2026-08-03
CVE-2026-48391 Adobe Bridge 权限许可和访问控制问题漏洞 — Adobe Bridge 8.2 High 2026-07-28
CVE-2026-48395 Adobe Bridge 权限许可和访问控制问题漏洞 — Adobe Bridge 8.6 High 2026-07-28
CVE-2026-63093 Anysphere Cursor 权限许可和访问控制问题漏洞 — Cursor 8.8 High 2026-07-17
CVE-2026-48287 Adobe Content Credentials Rust SDK 权限许可和访问控制问题漏洞 — Content Credentials Rust SDK 7.4 High 2026-07-14
CVE-2026-48275 Adobe Illustrator 权限许可和访问控制问题漏洞 — Illustrator Desktop 2026 8.6 High 2026-07-14
CVE-2026-48346 Adobe Animate 权限许可和访问控制问题漏洞 — Adobe Animate 2023 7.9 High 2026-07-14
CVE-2026-57097 Microsoft XML 权限许可和访问控制问题漏洞 — Windows 10 Version 1607 6.4 Medium 2026-07-14
CVE-2025-40945 Siemens COMOS 权限许可和访问控制问题漏洞 — COMOS V10.4.5 6.7 Medium 2026-07-14
CVE-2026-6901 B&R Industrial Automation APROL 权限许可和访问控制问题漏洞 — APROL 7.7 High 2026-07-06
CVE-2026-46710 notepad-plus-plus 权限许可和访问控制问题漏洞 — notepad-plus-plus - - 2026-06-26
CVE-2026-53865 OpenClaw 权限许可和访问控制问题漏洞 — OpenClaw 7.1 High 2026-06-16
CVE-2026-53858 OpenClaw 权限许可和访问控制问题漏洞 — OpenClaw 7.1 High 2026-06-16
CVE-2026-53846 OpenClaw 权限许可和访问控制问题漏洞 — OpenClaw 7.1 High 2026-06-16
CVE-2026-53842 OpenClaw 权限许可和访问控制问题漏洞 — OpenClaw 7.1 High 2026-06-16
CVE-2026-53819 OpenClaw 代码问题漏洞 — OpenClaw 8.8 High 2026-06-11
CVE-2026-48565 Microsoft Windows 代码问题漏洞 — Windows Narrator Braille 7.8 High 2026-06-09
CVE-2026-47648 Microsoft Windows Storage 代码问题漏洞 — Windows 10 Version 1607 7.0 High 2026-06-09
CVE-2026-24064 Waves Central 代码问题漏洞 — Waves Central - - 2026-06-09
CVE-2026-11401 Amazon Web Services Advanced Go Wrapper 安全漏洞 — AWS Advanced Go Wrapper 8.0 High 2026-06-05

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