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

  • 7.8 High severity

    vcpkg: Uncontrolled Search Path Element

    CVE-2026-34054Microsoft

    vcpkg is a free and open-source C/C++ package manager. Prior to version 3.6.1#3, vcpkg's Windows builds of OpenSSL set openssldir to a path on the build machine, making that path be attackable later on customer machines. This issue has been patched in version

  • 7.0 High severity

    UltraVNC: Untrusted Search Path

    CVE-2026-4962UltraVNC

    A security flaw has been discovered in UltraVNC up to 1.6.4.0. Affected by this issue is some unknown functionality in the library version.dll of the component Service. The manipulation results in uncontrolled search path. The attack needs to be approached loc

  • 8.4 High severity

    RATOC RAID Monitoring Manager for Windows: Uncontrolled Search Path Element

    CVE-2026-28760RATOC Systems

    The installer of RATOC RAID Monitoring Manager for Windows searches the current directory to load certain DLLs. If a user is directed to place a crafted DLL with the installer, an arbitrary code may be executed with the administrator privilege.

  • 8.4 High severity

    OM Workspace (Windows Edition): Uncontrolled Search Path Element

    CVE-2026-26306OM Digital Solutions

    The installer for OM Workspace (Windows Edition) Ver 2.4 and earlier insecurely loads Dynamic Link Libraries (DLLs), which could allow an attacker to execute arbitrary code with the privileges of the user invoking the installer.

  • 7.0 High severity

    Notepad2: Untrusted Search Path

    CVE-2026-4546Flos Freeware

    A weakness has been identified in Flos Freeware Notepad2 4.2.25. This impacts an unknown function in the library TextShaping.dll. Executing a manipulation can lead to uncontrolled search path. The attack is restricted to local execution. The attack requires a

  • 7.0 High severity

    Notepad2: Untrusted Search Path

    CVE-2026-4545Flos Freeware

    A security flaw has been discovered in Flos Freeware Notepad2 4.2.25. This affects an unknown function in the library PROPSYS.dll. Performing a manipulation results in uncontrolled search path. The attack is only possible with local access. The attack is consi

  • 7.8 High severity

    ScreenToGif: Untrusted Search Path

    CVE-2026-33156NickeManarin

    ScreenToGif is a screen recording tool. In versions from 2.42.1 and prior, ScreenToGif is vulnerable to DLL sideloading via version.dll . When the portable executable is run from a user-writable directory, it loads version.dll from the application directory in

  • 8.8 High severity

    Openedr: Uncontrolled Search Path Element

    CVE-2025-69784Xcitium

    A local, non-privileged attacker can abuse a vulnerable IOCTL interface exposed by the OpenEDR 2.5.1.0 kernel driver to modify the DLL injection path used by the product. By redirecting this path to a user-writable location, an attacker can cause OpenEDR to lo

  • 7.8 High severity

    Trusteer Rapport installer: Uncontrolled Search Path Element

    CVE-2026-2713IBM

    IBM Trusteer Rapport installer 3.5.2309.290 IBM Trusteer Rapport could allow a local attacker to execute arbitrary code on the system, caused by DLL uncontrolled search path element vulnerability. By placing a specially crafted file in a compromised folder, an

  • 8.4 High severity

    Qsee Client: Uncontrolled Search Path Element

    CVE-2026-30896Qsee

    The installer for Qsee Client versions 1.0.1 and prior insecurely load Dynamic Link Libraries (DLLs). When a user is directed to place some malicious DLL to the same directory and execute the affected installer, then arbitrary code may be executed with the adm

  • 7.0 High severity

    UltraVNC: Untrusted Search Path

    CVE-2026-3787UltraVNC

    A weakness has been identified in UltraVNC 1.6.4.0 on Windows. This affects an unknown function in the library cryptbase.dll of the component Windows Service. This manipulation causes uncontrolled search path. The attack requires local access. A high degree of

  • 7.3 High severity

    Acronis Cyber Protect Cloud Agent: Uncontrolled Search Path Element

    CVE-2025-11792Acronis

    Local privilege escalation due to DLL hijacking vulnerability. The following products are affected: Acronis Cyber Protect Cloud Agent (Windows) before build 41124.

  • 8.8 High severity

    OpenClaw: Uncontrolled Search Path Element

    CVE-2026-29610OpenClaw

    OpenClaw versions prior to 2026.2.14 contain a command hijacking vulnerability that allows attackers to execute unintended binaries by manipulating PATH environment variables through node-host execution or project-local bootstrapping. Attackers with authentica

  • 7.2 High severity

    OpenClaw: Uncontrolled Search Path Element

    CVE-2026-28456OpenClaw

    OpenClaw versions 2026.1.5 prior to 2026.2.14 contain a vulnerability in the Gateway in which it does not sufficiently constrain configured hook module paths before passing them to dynamic import(), allowing code execution. An attacker with gateway configurati

  • 8.0 High severity

    Docker CLI: Uncontrolled Search Path Element

    CVE-2025-15558Docker

    Docker CLI for Windows searches for plugin binaries in C:\ProgramData\Docker\cli-plugins, a directory that does not exist by default. A low-privileged attacker can create this directory and place malicious CLI plugin binaries (docker-compose.exe, docker-buildx

  • 7.8 High severity

    Dell Command | Intel vPro Out of Band: Uncontrolled Search Path Element

    CVE-2026-24502Dell

    Dell Command | Intel vPro Out of Band, versions prior to 4.7.0, contain an Uncontrolled Search Path Element vulnerability. A low privileged attacker with local access could potentially exploit this vulnerability, leading to Elevation of privileges.

  • 8.4 High severity

    FinalCode Ver.5 series: Uncontrolled Search Path Element

    CVE-2026-25191Digital Arts

    The installer of FinalCode Client provided by Digital Arts Inc. contains an issue with the DLL search path. If a user is directed to place a malicious DLL file and the installer to the same directory and execute the installer, arbitrary code may be executed wi

  • 7.3 High severity

    Synology Presto Client: Uncontrolled Search Path Element

    CVE-2026-3091Synology

    An uncontrolled search path element vulnerability in Synology Presto Client before 2.1.3-0672 allows local users to read or write arbitrary files and conduct denial-of-service during installation by placing a malicious DLL in advance in the same directory as t

  • 7.8 High severity

    Repository Manager: Uncontrolled Search Path Element

    CVE-2026-21420Dell

    Dell Repository Manager (DRM), versions prior to 3.4.8, contains an Uncontrolled Search Path Element vulnerability. A low privileged attacker with local access could potentially exploit this vulnerability, leading to arbitrary code execution and escalation of

  • 7.8 High severity

    TensorFlow: Uncontrolled Search Path Element

    CVE-2026-2492TensorFlow

    TensorFlow HDF5 Library Uncontrolled Search Path Element Local Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of TensorFlow. An attacker must first obtain the ability to execute lo

  • 7.3 High severity

    PDF-XChange Editor: Uncontrolled Search Path Element

    CVE-2026-2040PDF-XChange

    PDF-XChange Editor TrackerUpdate Uncontrolled Search Path Element Local Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of PDF-XChange Editor. An attacker must first obtain the abil

  • 8.4 High severity

    ジョブログ集計/分析ソフトウェア RICOHジョブログ集計ツール: Uncontrolled Search Path Element

    CVE-2026-26050Ricoh Company

    The installer for ジョブログ集計/分析ソフトウェア RICOHジョブログ集計ツール versions prior to Ver.1.3.7 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.

  • 7.0 High severity

    Notepad2: Untrusted Search Path

    CVE-2026-2538Flos Freeware

    A security flaw has been discovered in Flos Freeware Notepad2 4.2.22/4.2.23/4.2.24/4.2.25. Affected is an unknown function in the library Msimg32.dll. Performing a manipulation results in uncontrolled search path. Attacking locally is a requirement. The attack

  • 7.0 High severity

    ezPDF DRM Reader: Untrusted Search Path

    CVE-2026-2516Unidocs

    A vulnerability was identified in Unidocs ezPDF DRM Reader and ezPDF Reader 2.0/3.0.0.4. This affects an unknown part in the library SHFOLDER.dll. Such manipulation leads to uncontrolled search path. The attack needs to be performed locally. Attacks of this na

  • 7.3 High severity

    Vivado™ Documentation Navigator Installation…: Uncontrolled Search Path Element

    CVE-2025-54519AMD

    A DLL hijacking vulnerability in Doc Nav could allow a local attacker to achieve privilege escalation, potentially resulting in arbitrary code execution.

  • 7.1 High severity

    M-Track Duo HD: Uncontrolled Search Path Element

    CVE-2026-25676M-Audio

    The installer of M-Track Duo HD version 1.0.0 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 administrator privileges.

  • 8.0 High severity

    PostgreSQL Anonymizer: Uncontrolled Search Path Element

    CVE-2026-2361Dalibo

    PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a temporary view based on a function containing malicious code. When the anon.get_tablesample_ratio function is then called, the malicious code is execut

  • 8.0 High severity

    PostgreSQL Anonymizer: Uncontrolled Search Path Element

    CVE-2026-2360Dalibo

    PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a custom operator in the public schema and place malicious code in that operator. This operator will later be executed with superuser privileges when the

  • 7.3 High severity

    Vivado™ Installation (Windows): Uncontrolled Search Path Element

    CVE-2025-52541AMD

    A DLL hijacking vulnerability in Vivado could allow a local attacker to achieve privilege escalation, potentially resulting in arbitrary code execution.

  • 7.8 High severity

    AMD Ryzen™ 4000 Series Mobile Processors with…: Uncontrolled Search Path Element

    CVE-2025-48503AMD

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

  • 7.0 High severity

    MuPDF: Untrusted Search Path

    CVE-2025-15569Artifex

    A flaw has been found in Artifex MuPDF up to 1.26.1 on Windows. The impacted element is the function get_system_dpi of the file platform/x11/win_main.c. This manipulation causes uncontrolled search path. The attack requires local access. The attack is consider

  • 7.8 High severity

    SINEC NMS: Uncontrolled Search Path Element

    CVE-2026-25656Siemens

    A vulnerability has been identified in SINEC NMS (All versions < V4.0 SP3), User Management Component (UMC) (All versions < V2.15.2.1). The affected application permits improper modification of a configuration file by a low-privileged user. This could allow an

  • 7.8 High severity

    SINEC NMS: Uncontrolled Search Path Element

    CVE-2026-25655Siemens

    A vulnerability has been identified in SINEC NMS (All versions < V4.0 SP2). The affected application permits improper modification of a configuration file by a low-privileged user. This could allow an attacker to load malicious DLLs, potentially leading to arb

  • 8.8 High severity

    asterisk: Uncontrolled Search Path Element

    CVE-2026-23741Asterisk

    Asterisk is an open source private branch exchange and telephony toolkit. Prior to versions 20.7-cert9, 20.18.2, 21.12.1, 22.8.2, and 23.2.2, the asterisk/contrib/scripts/ast_coredumper runs as root, as noted by the NOTES tag on line 689 of the ast_coredumper

  • 7.8 High severity

    asterisk: Uncontrolled Search Path Element

    CVE-2026-23740Asterisk

    Asterisk is an open source private branch exchange and telephony toolkit. Prior to versions 20.7-cert9, 20.18.2, 21.12.1, 22.8.2, and 23.2.2, when ast_coredumper writes its gdb init and output files to a directory that is world-writable (for example /tmp), an

  • 8.4 High severity

    Roland Cloud Manager: Uncontrolled Search Path Element

    CVE-2026-24694Roland

    The installer for Roland Cloud Manager ver.3.1.19 and prior insecurely loads Dynamic Link Libraries (DLLs), which could allow an attacker to execute arbitrary code with the privileges of the application.

  • 7.3 High severity

    psysh: Uncontrolled Search Path Element

    CVE-2026-25129Bobthecow

    PsySH is a runtime developer console, interactive debugger, and REPL for PHP. Prior to versions 0.11.23 and 0.12.19, PsySH automatically loads and executes a `.psysh.php` file from the Current Working Directory (CWD) on startup. If an attacker can write to a d

  • 8.9 High severity

    WD Discovery: Uncontrolled Search Path Element

    CVE-2025-30248Western Digital

    DLL hijacking in the WD Discovery Installer in Western Digital WD Discovery 5.2.730 on Windows allows a local attacker to execute arbitrary code via placement of a crafted dll in the installer's search path.

  • 7.1 High severity

    Crucial Storage Executive: Uncontrolled Search Path Element

    CVE-2025-71178Micron Technology

    Crucial Storage Executive installer versions prior to 11.08.082025.00 contain a DLL preloading vulnerability. During installation, the installer runs with elevated privileges and loads Windows DLLs using an uncontrolled search path, which can cause a malicious

  • 7.3 High severity

    Client: Uncontrolled Search Path Element

    CVE-2026-0776Discord

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