Skip to content
OpenAdvisories

Weakness (CWE)

CWE-426: Untrusted Search Path

Base

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.

More detail

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. Programming languages may have their own paths for locating code, e.g. PERL5LIB in Perl.

- 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.

How to prevent it (5 mitigations)
  1. 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.

  2. 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 refer to these paths.

  3. 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.

  4. 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.

  5. 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.

Source: MITRE CWE-426

374 results · Feed

  • Medium 6.3

    Local privilege escalation due to DLL hijacking vulnerability. The following products are affected: Acronis Cyber Prote…

  • Medium 4.6

    Zoom Workplace Apps for Windows - Untrusted Search Path

    Untrusted search path in the installer for some Zoom Workplace Apps for Windows may allow an authorized user to conduct an escalation of privilege via local access.

  • High 7.8

    Snowflake JDBC allows an untrusted search path on Windows

    Snowflake JDBC provides a JDBC type 4 driver that supports core functionality, allowing Java program to connect to Snowflake. Snowflake discovered and remediated a vulnerability in the Snowflake JDBC Driver. When the EXTERNALBROWSER authentication method is u…

  • Medium 4.5

    Postman profapi.dll untrusted search path

    A vulnerability, which was classified as problematic, was found in Postman up to 11.20 on Windows. This affects an unknown part in the library profapi.dll. The manipulation leads to untrusted search path. An attack has to be approached locally. The complexity…

  • Medium 4.5

    Discord profapi.dll untrusted search path

    A vulnerability, which was classified as problematic, has been found in Discord up to 1.0.9177 on Windows. Affected by this issue is some unknown functionality in the library profapi.dll. The manipulation leads to untrusted search path. The attack needs to be…

  • High 7.8

    Rise Group Rise Mode Temp CPU Startup CRYPTBASE.dll untrusted search path

    A vulnerability was found in Rise Group Rise Mode Temp CPU 2.1. It has been classified as critical. This affects an unknown part in the library CRYPTBASE.dll of the component Startup. The manipulation leads to untrusted search path. The attack needs to be app…

  • Medium 4.5

    obsproject OBS Studio untrusted search path

    A vulnerability has been found in obsproject OBS Studio up to 30.0.2 on Windows and classified as problematic. Affected by this vulnerability is an unknown functionality. The manipulation leads to untrusted search path. The attack needs to be approached local…

  • Medium 4.5

    Epic Games Launcher Installer profapi.dll untrusted search path

    A vulnerability classified as problematic was found in Epic Games Launcher up to 17.2.1. This vulnerability affects unknown code in the library profapi.dll of the component Installer. The manipulation leads to untrusted search path. Attacking locally is a req…

  • High 7.4

    Microsoft Edge (Chromium-based) Update Elevation of Privilege Vulnerability

    Microsoft Edge (Chromium-based) Update Elevation of Privilege Vulnerability

  • High 8.8

    Untrusted Search Path Vulnerability in Bitdefender Antivirus Free 2020 (VA-8422)

    An untrusted search path vulnerability in testinitsigs.exe as used in Bitdefender Antivirus Free 2020 allows a low-privilege attacker to execute code as SYSTEM via a specially crafted DLL file.

  • Low 3.3
    CVE-2024-55503 Public exploit

    An issue in termius before v.9.9.0 allows a local attacker to execute arbitrary code via a crafted script to the DYLD_I…

  • Low 3.3
    CVE-2024-53407 Public exploit

    In Phiewer 4.1.0, a dylib injection leads to Command Execution which allow attackers to inject dylib file potentially l…

  • High 8.4

    An issue in the USB Autorun function of HI-SCAN 6040i Hitrax HX-03-19-I allows attackers to execute arbitrary code via …

  • High 7.8

    Microsoft Office Remote Code Execution Vulnerability

    Microsoft Office Remote Code Execution Vulnerability

  • High 7.2

    An unbounded resource search path in Ivanti EPM before the 2024 January-2025 Security Update and 2022 SU6 January-2025 …

  • Medium 5.3

    libretro RetroArch Startup profapi.dll untrusted search path

    A vulnerability, which was classified as problematic, has been found in libretro RetroArch up to 1.19.1 on Windows. Affected by this issue is some unknown functionality in the library profapi.dll of the component Startup. The manipulation leads to untrusted s…

  • Medium 5.8

    pnpm vulnerable to no-script global cache poisoning via overrides / `ignore-scripts` evasion

    The package manager pnpm prior to version 9.15.0 seems to mishandle overrides and global cache: Overrides from one workspace leak into npm metadata saved in global cache; npm metadata from global cache affects other workspaces; and installs by default don't r…

  • High 7.8

    Untrusted Search Path vulnerability in Autodesk Revit

    A maliciously crafted DLL file, when placed in the same directory as an RVT file could be loaded by Autodesk Revit, and execute arbitrary code in the context of the current process due to an untrusted search patch being utilized.

  • High 7.0

    DLL injection in Veeam Agent for Windows can occur if the system's PATH variable includes insecure locations. When the …

  • High 7.8
    CVE-2023-1521 Public exploit

    Local Privilege Escalation in sccache

    On Linux the sccache client can execute arbitrary code with the privileges of a local sccache server, by preloading the code in a shared library passed to LD_PRELOAD. If the server is run as root (which is the default when installing the snap package https://…

  • High 7.3
    CVE-2024-50986 Public exploit

    An issue in Clementine v.1.3.1 allows a local attacker to execute arbitrary code via a crafted DLL file.

  • High 7.8

    Substance3D - Painter | Untrusted Search Path (CWE-426)

    Substance3D - Painter versions 10.1.0 and earlier are affected by an Untrusted Search Path vulnerability that might allow attackers to execute arbitrary code. If the application uses a search path to locate critical resources such as programs, then an attacke…

  • Medium 6.7

    A untrusted search path in Fortinet FortiClientWindows versions 7.4.0, versions 7.2.4 through 7.2.0, versions 7.0.12 th…

  • High 7.8

    Microsoft.SqlServer.XEvent.Configuration.dll Remote Code Execution Vulnerability

    Microsoft.SqlServer.XEvent.Configuration.dll Remote Code Execution Vulnerability

  • High 7.8

    Excessive binary privileges in Ivanti Connect Secure before version 22.7R2.3 (Not Applicable to 9.1Rx) and Ivanti Polic…

  • High 7.8

    Autodesk VRED Design Privilege Escalation Vulnerability

    A maliciously crafted binary file when downloaded could lead to escalation of privileges to NT AUTHORITY/SYSTEM due to an untrusted search path being utilized in the VRED Design application. Exploitation of this vulnerability may lead to code execution.

  • Medium 5.3

    Code injection vulnerability found in OpenText Application Lifecycle Management (ALM),Quality Center.

    Untrusted Search Path vulnerability in OpenText™ Application Lifecycle Management (ALM),Quality Center allows Code Inclusion. The vulnerability allows a user to archive a malicious DLLs on the system prior to the installation.   This issue affects Application…

  • High 7.8

    Adobe Framemaker | Untrusted Search Path (CWE-426)

    Adobe Framemaker versions 2020.6, 2022.4 and earlier are affected by an Untrusted Search Path vulnerability that could lead to arbitrary code execution. An attacker could exploit this vulnerability by inserting a malicious path into the search directories, wh…

  • High 7.8

    Microsoft Office Remote Code Execution Vulnerability

    Microsoft Office Remote Code Execution Vulnerability

  • High 7.8

    Microsoft Office Remote Code Execution Vulnerability

    Microsoft Office Remote Code Execution Vulnerability

  • High 8.0

    HP One Agent Software – Potential Privilege Escalation

    A potential security vulnerability has been identified in the HP One Agent for certain HP PC products, which might allow for escalation of privilege. HP is releasing software updates to mitigate this potential vulnerability.

  • High 7.8

    Intelbras InControl incontrol-service-watchdog.exe unquoted search path

    A vulnerability classified as critical has been found in Intelbras InControl up to 2.21.56. This affects an unknown part of the file C:\Program Files (x86)\Intelbras\Incontrol Cliente\incontrol_webcam\incontrol-service-watchdog.exe. The manipulation leads to …

  • Medium 6.7
    CVE-2024-6769 Public exploit

    Medium to High Integrity Privilege Escalation in Microsoft Windows

    A DLL Hijacking caused by drive remapping combined with a poisoning of the activation cache in Microsoft Windows 10, Windows 11, Windows Server 2016, Windows Server 2019, and Windows Server 2022 allows a malicious authenticated attacker to elevate from a medi…

  • High 8.8

    DLL hijacking in the management console of Ivanti Workspace Control before version 2025.2 (10.19.0.0) allows a local au…

  • Medium 5.8

    DLL hijacking vulnerability in SAP BusinessObjects Business Intelligence Platform

    SAP BusinessObjects Business Intelligence Platform allows a high privilege user to run client desktop applications even if some of the DLLs are not digitally signed or if the signature is broken. The attacker needs to have local access to the vulnerable syste…

  • High 8.4
    CVE-2024-6473 Public exploit

    DLL Hijacking in Yandex Browser

    Yandex Browser for Desktop before 24.7.1.380 has a DLL Hijacking Vulnerability because an untrusted search path is used.

  • High 7.3

    Dell SupportAssist for Home PCs Installer exe version 4.0.3 contains a privilege escalation vulnerability in the instal…

  • High 7.8

    Scooter Software Beyond Compare 7zxa.dll uncontrolled search path

    A vulnerability has been found in Scooter Software Beyond Compare up to 3.3.5.15075 and classified as critical. Affected by this vulnerability is an unknown functionality in the library 7zxa.dll. The manipulation leads to uncontrolled search path. Attacking l…

  • Medium 6.5

    Zoom Workplace Desktop App for macOS and Zoom Meeting SDK for macOS - Untrusted Search Path

    Untrusted search path in the installer for Zoom Workplace Desktop App for macOS and Zoom Meeting SDK for macOS before 6.1.0 may allow a privileged user to conduct an escalation of privilege via local access.

  • High 7.8

    Adobe Dimension Untrusted Search Path lead to load malicious DLL swift.dll

    Dimension versions 3.4.11 and earlier are affected by an Untrusted Search Path vulnerability that could lead to arbitrary code execution. An attacker could exploit this vulnerability by inserting a malicious file into the search path, which the application mi…