CyberSecBulletin

Uncontrolled Search Path Element

CWE-427

The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.

Although this weakness can occur with any type of resource, it is frequently introduced when a product uses a directory search path to find executables or code libraries, but the path contains a directory that can be modified by an attacker, such as /tmp or the current working directory. In Windows-based systems, when the LoadLibrary or LoadLibraryEx function is called with a DLL name that does not contain a fully qualified path, the function follows a search order that includes two path elements that might be uncontrolled: the directory from which the program has been loaded the current working directory In some cases, the attack can be conducted remotely, such as when SMB or WebDAV network shares are used. One or more locations in that path could include the Windows drive root or its subdirectories. This often exists in Linux-based code assuming the controlled nature of the root directory (/) or its subdirectories (/etc, etc), or a code that recursively accesses the parent directory. In Windows, the drive root and some of its subdirectories have weak permissions by default, which makes them uncontrolled. In some Unix-based systems, a PATH might be created that contains an empty element, e.g. by splicing an empty variable into the PATH. This empty element can be interpreted as equivalent to the current working directory, which might be an untrusted search element. In software package management frameworks (e.g., npm, RubyGems, or PyPi), the framework may identify dependencie

We track 610 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 7.8. 3 have been exploited in real attacks.

How this weakness is prevented

  • 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 refer to these paths.
  • 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. Since this is a denylist approach, it might not be a complete solution.
  • 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 finding the program using the PATH environment variable, while execl() and execv() require a full path.

Latest Uncontrolled Search Path Element vulnerabilities

  • 8.8 High severity

    i: Uncontrolled Search Path Element

    CVE-2026-7870IBM

    IBM i 7.6, 7.5, 7.4, and 7.3 could allow a user to gain elevated privileges due to an unqualified library call. A malicious actor could cause user-controlled code to run with administrator privilege.

  • 7.8 High severity

    Identity Agent: Uncontrolled Search Path Element

    CVE-2026-10847Check Point

    A local privilege escalation vulnerability exists in Check Point Identity Agent Full for Windows OS. An authenticated local user may be able to execute arbitrary code with SYSTEM privileges due to improper handling of executable resolution during the log colle

  • 7.8 High severity

    LanSchool Classic: Uncontrolled Search Path Element

    CVE-2026-8637Lenovo

    A potential uncontrolled search path vulnerability was reported in the LanSchool Classic client application that could allow a local authenticated user to execute arbitrary code with elevated privileges.

  • 7.7 High severity

    Acrobat DC: Uncontrolled Search Path Element

    CVE-2026-47937Adobe

    Acrobat Reader versions 24.001.30365, 26.001.21651 and earlier are affected by an Uncontrolled Search Path Element vulnerability that could result in arbitrary code execution in the context of the current user. An attacker with high privileges could exploit th

  • 7.2 High severity

    moby/v2/daemon: Uncontrolled Search Path Element

    CVE-2026-41567Moby

    Moby is an open source container framework. In versions prior to 29.5.1 and in moby/moby v2 prior to v2.0.0-beta.14, when a compressed archive is uploaded to a container via `PUT /containers/{id}/archive` or piped through `docker cp -`, the daemon resolves dec

  • 7.3 High severity

    Acronis DeviceLock DLP: Uncontrolled Search Path Element

    CVE-2026-50033Acronis

    Local privilege escalation due to DLL hijacking vulnerability. The following products are affected: Acronis DeviceLock DLP (Windows) before build 9.0.15051.93227.

  • 7.3 High severity

    Acronis DeviceLock DLP: Uncontrolled Search Path Element

    CVE-2026-44682Acronis

    Local privilege escalation due to DLL hijacking vulnerability. The following products are affected: Acronis DeviceLock DLP (Windows) before build 9.0.15051.93227.

  • 7.3 High severity

    Acronis DeviceLock DLP: Uncontrolled Search Path Element

    CVE-2026-44609Acronis

    Local privilege escalation due to EXE hijacking vulnerability. The following products are affected: Acronis DeviceLock DLP (Windows) before build 9.0.15051.93227.

  • 8.2 High severity

    shared-github-dangerjs: Uncontrolled Search Path Element

    CVE-2026-44358Espressif

    Espressif Shared GitHub DangerJS is a reusable GitHub Action CI DangerJS workflow for Espressif GitHub projects. Prior to 1.0.1, the action's entrypoint.sh invoked DangerJS from the caller's workspace after copying the fork's checkout into it, creating an untr

  • 7.8 High severity

    BeeDrive for desktop: Uncontrolled Search Path Element

    CVE-2023-52945Synology

    Uncontrolled search path element vulnerability in OpenSSL DLL component in Synology BeeDrive for desktop before 1.3.2-13814 allows local users to execute arbitrary code via unspecified vectors.

  • 7.8 High severity

    AXC F 1152: Uncontrolled Search Path Element

    CVE-2025-41670Phoenix Contact

    A local user with low privileges may be able to influence the behavior of a privileged system service by manipulating configuration or application-related files located in user-writable areas of the filesystem. The affected service processes data from location

  • 7.8 High severity

    mullvadvpn-app: Improper Privilege Management

    CVE-2026-32323Mullvad

    Mullvad VPN is a VPN client app for desktop and mobile. When using macOS with versions 2026.1 and below, Mullvad VPN may allow local privilege escalation during installation or upgrade. The installer package executes binaries from /Applications/Mullvad VPN.app

  • 7.8 High severity

    claude-hud: Uncontrolled Search Path Element

    CVE-2026-47092Jarrodwatts

    Claude HUD through 0.0.12, patched in commit 234d9aa, contains a command injection vulnerability that allows local attackers to execute arbitrary commands by manipulating the COMSPEC environment variable. Attackers can set COMSPEC to an arbitrary binary path b

  • 7.8 High severity

    AMD Radeon™ RX 5000 Series Graphics Products: Uncontrolled Search Path Element

    CVE-2024-36333AMD

    A DLL hijacking vulnerability in the AMD Cleanup Utility could allow an attacker to achieve privilege escalation potentially resulting in arbitrary code execution.

  • 8.5 High severity

    Metasploit Pro: Improper Access Control

    CVE-2026-7373Rapid7

    Rapid7 Metasploit Pro is vulnerable to a local privilege escalation attack that allows a user to gain SYSTEM level control of a Windows host. When started the metasploitPostgreSQL service would start the postgres.exe child process which would in turn load an O

  • 7.0 High severity

    AIM-T Manageability Service: Uncontrolled Search Path Element

    CVE-2025-62628AMD

    Unsafe OpenSSL initialization within some AMD optional tools may allow a local user-privileged attacker to inject a malicious DLL, potentially resulting in arbitrary code execution.

  • 7.8 High severity

    Checkmk: Uncontrolled Search Path Element

    CVE-2024-47091Checkmk

    Privilege escalation in the mk_mysql agent plugin on Windows in Checkmk <2.4.0p29, <2.3.0p47, and 2.2.0 (EOL) allows a local unprivileged user able to create a Windows service whose name matches 'MySQL' or 'MariaDB' (or with write access to a binary referenced

  • 8.4 High severity

    Bytello Share (Windows Edition) installer…: Uncontrolled Search Path Element

    CVE-2026-44612Bytello

    Bytello Share (Windows Edition) installer executable provided by Bytello insecurely loads Dynamic Link Libraries. If there is a crafted DLL at the same directory when invoking the affected installer, arbitrary code may be executed with the privilege of the use

  • 7.8 High severity

    OpenClaw: Uncontrolled Search Path Element

    CVE-2026-45004OpenClaw

    OpenClaw before 2026.4.23 contains an arbitrary code execution vulnerability in the bundled plugin setup resolver that loads setup-api.js from process.cwd() during provider setup metadata resolution. Attackers can execute arbitrary JavaScript under the current

  • 7.8 High severity

    ZXCLOUD iRAI: Uncontrolled Search Path Element

    CVE-2026-44406ZTE

    ZTE Cloud PC client uSmartView contains a DLL hijacking vulnerability; since uSmartViewServiceAgent.exe runs with SYSTEM privileges, successful hijacking enables local arbitrary code execution, privilege escalation, and memory corruption.contains a DLL hijacki

  • 7.8 High severity

    ZXCLOUD iRAI: Uncontrolled Search Path Element

    CVE-2026-40004ZTE

    There exists an openssl.cnf privilege escalation vulnerability in ZTE Cloud PC client uSmartview. An attacker can execute arbitrary code locally and escalate privileges.

  • 8.4 High severity

    AC2000: Uncontrolled Search Path Element

    CVE-2026-21661Johnson Controls

    An Uncontrolled Search Path Element vulnerability in JohnsonControls AC2000 on Windows allows Leveraging/Manipulating Configuration File Search Paths. This issue affects AC2000: from 10.6 before release 10, from 11.0 before release 9, from 12 before release 3.

  • 7.8 High severity

    AVACAST: Uncontrolled Search Path Element

    CVE-2026-7279eMPIA Technology

    AVACAST developed by eMPIA Technology, has a DLL Hijacking vulnerability, allowing authenticated local attackers to place a malicious DLL in a specific directory, resulting in arbitrary code execution with system privileges when the system loads the DLL.

  • 7.8 High severity

    Nullsoft Scriptable Install System: Uncontrolled Search Path Element

    CVE-2026-42171Nullsoft

    NSIS (Nullsoft Scriptable Install System) 3.06.1 before 3.12 sometimes uses the Low IL temp directory when executing as SYSTEM, allowing local attackers to gain privileges (if they can cause my_GetTempFileName to return 0, as shown in the references).

  • 7.0 High severity

    IP Setting Software: Uncontrolled Search Path Element

    CVE-2026-34488i-PRO

    IP Setting Software contains an issue with the DLL search path, which may lead to insecurely loading Dynamic Link Libraries. As a result, arbitrary code may be executed with administrative privileges.

  • 8.4 High severity

    Downloader5Installer.exe: Uncontrolled Search Path Element

    CVE-2026-32679Japan Media Systems

    The installers of LiveOn Meet Client for Windows (Downloader5Installer.exe and Downloader5InstallerForAdmin.exe) and the installers of Canon Network Camera Plugin (CanonNWCamPlugin.exe and CanonNWCamPluginForAdmin.exe) insecurely load Dynamic Link Libraries (D

  • 9.9 Critical severity

    firebird: Improper Limitation of a Pathname to a Restricted Directory

    CVE-2026-40342FirebirdSQL

    Firebird is an open-source relational database management system. In versions prior to 5.0.4, 4.0.7 and 3.0.14, the external engine plugin loader concatenates a user-supplied engine name into a filesystem path without filtering path separators or .. components

  • 7.0 High severity

    MobaXterm Home Edition: Untrusted Search Path

    CVE-2026-6421Mobatek

    A vulnerability has been found in Mobatek MobaXterm Home Edition up to 26.1. This affects an unknown part in the library msimg32.dll. The manipulation leads to uncontrolled search path. An attack has to be approached locally. The attack is considered to have h

  • 9.9 Critical severity

    IPP software: Uncontrolled Search Path Element

    CVE-2026-22619Eaton

    Eaton Intelligent Power Protector (IPP) is affected by insecure library loading in its executable, which could lead to arbitrary code execution by an attacker with access to the software package. This security issue has been fixed in the latest version of Eato

  • 8.6 High severity

    Adobe Photoshop Installer: Uncontrolled Search Path Element

    CVE-2026-34632Adobe

    Adobe Photoshop Installer was affected by an Uncontrolled Search Path Element vulnerability that could have resulted in arbitrary code execution in the context of the current user. An attacker could have exploited this vulnerability by placing a malicious libr

  • 7.3 High severity

    Software Fix: Uncontrolled Search Path Element

    CVE-2026-4134Lenovo

    During an internal security assessment, a potential vulnerability was discovered in Lenovo Software Fix, that during installation could allow a local authenticated user to execute code with elevated privileges.

  • 7.8 High severity

    PowerAttendant Standard Edition: Uncontrolled Search Path Element

    CVE-2026-5397OMRON SOCIAL SOLUTIONS

    It has been identified that a vulnerability (CWE-427) exists in the UPS (Uninterruptible Power Supply) management application, whereby improper permissions on the installation directory allow a malicious actor to place a DLL that is then executed with administ

  • 7.8 High severity

    NoMachine: Uncontrolled Search Path Element

    CVE-2026-5055NoMachine

    NoMachine Uncontrolled Search Path Element Local Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of NoMachine. An attacker must first obtain the ability to execute low-privileged co

  • 7.3 High severity

    KeePassXC: Uncontrolled Search Path Element

    CVE-2026-4158KeePassXC

    KeePassXC OpenSSL Configuration Uncontrolled Search Path Element Local Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of KeePassXC. An attacker must first obtain the ability to exe

  • 8.4 High severity

    Emocheck: Uncontrolled Search Path Element

    Emocheck insecurely loads Dynamic Link Libraries (DLLs). If a crafted DLL file is placed to the same directory, an arbitrary code may be executed with the privilege of the user invoking EmoCheck.

  • 7.8 High severity

    MemProcFS: Uncontrolled Search Path Element

    CVE-2026-40031Ufrisk

    MemProcFS before 5.17 contains multiple unsafe library-loading patterns that enable DLL and shared-library hijacking across six attack surfaces, including bare-name LoadLibraryU and dlopen calls without path qualification for vmmpyc, libMSCompression, and plug

  • 7.0 High severity

    Red Hat Hardened Images: Uncontrolled Search Path Element

    CVE-2025-14821Red Hat

    A flaw was found in libssh. This vulnerability allows local man-in-the-middle attacks, security downgrades of SSH (Secure Shell) connections, and manipulation of trusted host information, posing a significant risk to the confidentiality, integrity, and availab

  • 7.8 High severity

    pymanager: Uncontrolled Search Path Element

    CVE-2026-5271Python Software Foundation

    pymanager included the current working directory in sys.path meaning modules could be shadowed by modules in the current working directory. As a result, if a user executes a pymanager-generated command (e.g., pip, pytest) from an attacker-controlled directory,

  • 7.8 High severity

    Foxit PDF Editor: Uncontrolled Search Path Element

    CVE-2026-3775Foxit

    The application's update service, when checking for updates, loads certain system libraries from a search path that includes directories writable by low‑privileged users and is not strictly restricted to trusted system locations. Because these libraries may be

  • 7.8 High severity

    Claude Desktop - Windows: Uncontrolled Search Path Element

    CVE-2026-22561Anthropic

    Uncontrolled search path elements in Anthropic Claude for Windows installer (Claude Setup.exe) versions prior to 1.1.3363 allow local privilege escalation via DLL search-order hijacking. The installer loads DLLs (e.g., profapi.dll) from its own directory after