CWE-426Untrusted Search Path

PUBLISHEDweakness recordHigh
released 2006-07-19 · last modified 2025-12-11

Metadata

CWE ID:
CWE-426
摘要:
Base
结构:
Simple
状态:
Stable
发布日期:
2006-07-19
更新日期:
2025-12-11

名称

Untrusted Search Path

描述

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:

常见后果

范围:
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.

相关 CWE