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

  • High 7.8

    Untrusted search path on Windows systems leading to arbitrary code execution

    GitPython is a python library used to interact with Git repositories. When resolving a program, Python/Windows look for the current working directory, and after that the PATH environment. GitPython defaults to use the `git` command, if a user runs GitPython f…

  • Medium 4.7

    Adobe Acrobat Reader Untrusted Search Path Application denial-of-service

    Adobe Acrobat Reader versions 23.003.20244 (and earlier) and 20.005.30467 (and earlier) are affected by an Untrusted Search Path vulnerability that could lead to Application denial-of-service. An attacker could leverage this vulnerability if the default Power…

  • High 7.8

    Tablet Windows User Interface Application Core Remote Code Execution Vulnerability

    Tablet Windows User Interface Application Core Remote Code Execution Vulnerability

  • High 7.3

    Untrusted search path in the installer for Zoom Desktop Client for Windows before 5.14.5 may allow an authenticated use…

  • High 8.4

    Improper access control in Zoom Rooms for Windows before version 5.15.0 may allow an authenticated user to enable an es…

  • High 8.2

    Untrusted search path in the installer for Zoom Rooms for Windows before version 5.15.0 may allow an authenticated user…

  • High 8.2

    Insecure temporary file in the installer for Zoom Rooms for Windows before version 5.15.0 may allow an authenticated us…

  • High 7.8

    Windows Geolocation Service Remote Code Execution Vulnerability

    Windows Geolocation Service Remote Code Execution Vulnerability

  • High 7.5

    kodbox 1.2.x through 1.3.7 has a Sensitive Information Leakage issue.

  • Critical 9.8
    CVE-2023-30330 Public exploit

    SoftExpert (SE) Excellence Suite 2.x versions before 2.1.3 is vulnerable to Local File Inclusion in the function /se/v4…

  • Medium 6.7

    Local Privilege Escalation

    Qualys Cloud Agent for macOS (versions 2.5.1-75 before 3.7) installer allows a local escalation of privilege bounded only to the time of installation and only on older macOSX (macOS 10.15 and older) versions. Attackers may exploit incorrect file permissions t…

  • High 7.8

    An issue found in Wondershare Technology Co.,Ltd Dr.Fone v.12.4.9 allows a remote attacker to execute arbitrary command…

  • High 7.8

    An issue found in Wondershare Technology Co., Ltd DemoCreator v.6.0.0 allows a remote attacker to execute arbitrary com…

  • High 7.8

    An issue found in Wondershare Technology Co, Ltd Filmora v.12.0.9 allows a remote attacker to execute arbitrary command…

  • High 7.8

    An issue found in Wondershare Technology Co.,Ltd Recoverit v.10.6.3 allows a remote attacker to execute arbitrary comma…

  • High 7.8

    An issue found in Wondershare Technology Co.,Ltd PDFelement v9.1.1 allows a remote attacker to execute arbitrary comman…

  • High 7.8

    An issue found in Wondershare Technology Co.,Ltd Creative Centerr v.1.0.8 allows a remote attacker to execute arbitrary…

  • High 7.8

    An issue found in Wondershare Technology Co., Ltd UniConverter v.14.0.0 allows a remote attacker to execute arbitrary c…

  • High 7.8

    An issue found in Wondershare Technology Co, Ltd Edrawmind v.10.0.6 allows a remote attacker to executea arbitrary comm…

  • High 7.8

    An issue found in Wondershare Technology Co.,Ltd PDF Reader v.1.0.1 allows a remote attacker to execute arbitrary comma…

  • High 7.8

    An issue found in Wondershare Technology Co.,Ltd MobileTrans v.4.0.2 allows a remote attacker to execute arbitrary comm…

  • High 7.8

    An issue found in Wondershare Technology Co.,Ltd Repairit v.3.5.4 allows a remote attacker to execute arbitrary command…

  • High 7.8

    An issue found in Wondershare Technology Co.,Ltd Anireel 1.5.4 allows a remote attacker to execute arbitrary commands v…

  • High 8.6

    Adobe Creative Cloud AdobeExtensionService.exe local privilege escalation vulnerability

    Creative Cloud version 5.9.1 (and earlier) is affected by an Untrusted Search Path vulnerability that might allow attackers to execute their own programs, access unauthorized data files, or modify configuration in unexpected ways. If the application uses a se…

  • Medium 5.4

    ZoneMinder contains Local File Inclusion vulnerability via `web/ajax/modal.php`

    ZoneMinder is a free, open source Closed-circuit television software application for Linux which supports IP, USB and Analog cameras. Versions prior to 1.36.33 and 1.37.33 contain a Local File Inclusion (Untrusted Search Path) vulnerability via web/ajax/modal…

  • High 8.1

    ZoneMinder contains Local File Inclusion vulnerability

    ZoneMinder is a free, open source Closed-circuit television software application for Linux which supports IP, USB and Analog cameras. Versions prior to 1.36.33 and 1.37.33 contain a Local File Inclusion (Untrusted Search Path) vulnerability via /web/index.php…

  • Medium 4.2

    An untrusted search path vulnerability exists in Node.js. <19.6.1, <18.14.1, <16.19.1, and <14.21.3 that could allow an…

  • High 7.8

    Untrusted search path vulnerability in ELECOM Camera Assistant 1.00 and QuickFileDealer Ver.1.2.1 and earlier allows an…

  • High 7.3

    Git for Windows' installer is susceptible to DLL side loading attacks

    Git for Windows is the Windows port of the revision control system Git. Prior to Git for Windows version 2.39.2, by carefully crafting DLL and putting into a subdirectory of a specific name living next to the Git for Windows installer, Windows can be tricked …

  • High 8.6

    gitk can inadvertently call executables in the worktree

    Git for Windows is the Windows port of the revision control system Git. Prior to Git for Windows version 2.39.2, when `gitk` is run on Windows, it potentially runs executables from the current directory inadvertently, which can be exploited with some social e…

  • Medium 6.7

    A vulnerability has been identified in TIA Multiuser Server V14 (All versions), TIA Multiuser Server V15 (All versions …

  • High 8.8

    A flaw was found in libXpm. When processing files with .Z or .gz extensions, the library calls external programs to com…

  • High 8.6

    Git clone remote code execution vulnerability in git-for-windows

    Git GUI is a convenient graphical tool that comes with Git for Windows. Its target audience is users who are uncomfortable with using Git on the command-line. Git GUI has a function to clone repositories. Immediately after the local clone is available, Git GU…

  • High 7.8

    Microsoft Exchange Server Elevation of Privilege Vulnerability

    Microsoft Exchange Server Elevation of Privilege Vulnerability

  • High 7.8

    Microsoft Exchange Server Elevation of Privilege Vulnerability

    Microsoft Exchange Server Elevation of Privilege Vulnerability

  • High 8.8

    OpenStack Kolla sudo privilege escalation vulnerability

    A privilege escalation vulnerability exists in the sudo functionality of OpenStack Kolla git master 05194e7618. A misconfiguration in /etc/sudoers within a container can lead to increased privileges.

  • High 7.1

    openldap2: /usr/lib/openldap/start allows ldap user/group to recursively chown arbitrary directory trees to itself

    A Untrusted Search Path vulnerability in openldap2 of openSUSE Factory allows local attackers with control of the ldap user or group to change ownership of arbitrary directory entries to this user/group, leading to escalation to root. This issue affects: open…

  • Medium 6.3

    Redis on Windows dbghelp.dll uncontrolled search path

    A vulnerability was found in a port or fork of Redis. It has been declared as critical. This vulnerability affects unknown code in the library C:/Program Files/Redis/dbghelp.dll. The manipulation leads to uncontrolled search path. The attack can be initiated …

  • High 8.8

    Privilege Escalation in OpenLiteSpeed Web Server

    Untrusted Search Path vulnerability in LiteSpeed Technologies OpenLiteSpeed Web Server and LiteSpeed Web Server Container allows Privilege Escalation. This affects versions from 1.6.15 before 1.7.16.1.

  • High 7.8

    Beijing Feishu Technology Co., Ltd Feishu v3.40.3 was discovered to contain an untrusted search path vulnerability.