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

    notepad-plus-plus: Least Privilege Violation

    CVE-2025-49144Notepad-plus-plus

    Notepad++ is a free and open-source source code editor. In versions 8.8.1 and prior, a privilege escalation vulnerability exists in the Notepad++ v8.8.1 installer that allows unprivileged users to gain SYSTEM-level privileges through insecure executable search

  • 9.9 Critical severity

    Mattermost: Uncontrolled Search Path Element

    CVE-2025-4981MattermostEPSS 1.02%

    Mattermost versions 10.5.x <= 10.5.5, 9.11.x <= 9.11.15, 10.8.x <= 10.8.0, 10.7.x <= 10.7.2, 10.6.x <= 10.6.5 fail to sanitize filenames in the archive extractor which allows authenticated users to write files to arbitrary locations on the filesystem via uploa

  • 7.8 High severity

    Check Point SmartConsole: Uncontrolled Search Path Element

    CVE-2024-24916Check PointEPSS 2.74%

    Untrusted DLLs in the installer's directory may be loaded and executed, leading to potentially arbitrary code execution with the installer's privileges (admin).

  • 7.8 High severity

    Trend Micro Apex One: Uncontrolled Search Path Element

    CVE-2025-49158Trend Micro

    An uncontrolled search path vulnerability in the Trend Micro Apex One security agent could allow a local attacker to escalation privileges on affected installations. Please note: an attacker must first obtain the ability to execute low-privileged code on the t

  • 8.8 High severity

    Trend Micro Apex One: Uncontrolled Search Path Element

    CVE-2025-49155Trend Micro

    An uncontrolled search path vulnerability in the Trend Micro Apex One Data Loss Prevention module could allow an attacker to inject malicious code leading to arbitrary code execution on affected installations.

  • 7.5 High severity

    i: Uncontrolled Search Path Element

    CVE-2025-33122IBM

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

  • 7.3 High severity

    clip_share_server: Uncontrolled Search Path Element

    CVE-2025-49148Thevindu-w

    ClipShare is a lightweight and cross-platform tool for clipboard sharing. Prior to 3.8.5, ClipShare Server for Windows uses the default Windows DLL search order and loads system libraries like CRYPTBASE.dll and WindowsCodecs.dll from its own directory before t

  • 7.8 High severity

    Action1: Uncontrolled Search Path Element

    CVE-2025-5480Action1

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

  • 7.3 High severity

    jupyter_core: Uncontrolled Search Path Element

    CVE-2025-30167Jupyter

    Jupyter Core is a package for the core common functionality of Jupyter projects. When using Jupyter Core prior to version 5.8.0 on Windows, the shared `%PROGRAMDATA%` directory is searched for configuration files (`SYSTEM_CONFIG_PATH` and `SYSTEM_JUPYTER_PATH`

  • 9.8 Critical severity

    HCL Traveler for Microsoft Outlook (HTMO): Uncontrolled Search Path Element

    CVE-2024-42191HCL Software

    HCL Traveler for Microsoft Outlook (HTMO) is susceptible to a COM hijacking vulnerability which could allow an attacker to modify or replace the application with malicious content.

  • 9.8 Critical severity

    HCL Traveler for Microsoft Outlook (HTMO): Uncontrolled Search Path Element

    CVE-2024-42190HCL Software

    HCL Traveler for Microsoft Outlook (HTMO) is susceptible to a DLL hijacking vulnerability which could allow an attacker to modify or replace the application with malicious content.

  • 7.3 High severity

    Filmora: Uncontrolled Search Path Element

    CVE-2025-5180Wondershare

    A vulnerability, which was classified as critical, has been found in Wondershare Filmora 14.5.16. Affected by this issue is some unknown functionality in the library CRYPTBASE.dll of the file NFWCHK.exe of the component Installer. The manipulation leads to unc

  • 7.0 High severity

    FIE Endpoint: Uncontrolled Search Path Element

    CVE-2025-2272Forcepoint

    Uncontrolled Search Path Element vulnerability in Forcepoint FIE Endpoint allows Privilege Escalation, Code Injection, Hijacking a privileged process.This issue affects FIE Endpoint: before 25.05.

  • 8.4 High severity

    Battle.net: Uncontrolled Search Path Element

    CVE-2025-27997Blizzard

    An issue in Blizzard Battle.net v2.40.0.15267 allows attackers to escalate privileges via placing a crafted shell script or executable into the C:\ProgramData directory.

  • 7.0 High severity

    Anytxt Searcher: Untrusted Search Path

    CVE-2025-4769CBEWIN

    A vulnerability classified as critical was found in CBEWIN Anytxt Searcher 1.3.1128.0. This vulnerability affects unknown code of the file ATService.exe. The manipulation leads to uncontrolled search path. The attack needs to be approached locally. The complex

  • 7.8 High severity

    Substance3D - Modeler: Uncontrolled Search Path Element

    CVE-2025-43553Adobe

    Substance3D - Modeler versions 1.21.0 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. If the application relies on a search path to locate critical

  • 7.8 High severity

    AIM-T Manageability API: Uncontrolled Search Path Element

    CVE-2023-31358AMD

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

  • 8.8 High severity

    Checkmk: Uncontrolled Search Path Element

    CVE-2025-32917Checkmk

    Privilege escalation in jar_signature agent plugin in Checkmk versions <2.4.0b7 (beta), <2.3.0p32, <2.2.0p42, and 2.1.0p49 (EOL) allow user with write access to JAVA_HOME/bin directory to escalate privileges.

  • 7.8 High severity

    openssl-feedstock: Uncontrolled Search Path Element

    CVE-2025-35471Conda-forge

    conda-forge openssl-feedstock before 066e83c (2024-05-20), on Microsoft Windows, configures OpenSSL to use an OPENSSLDIR file path that can be written to by non-privilged local users. By writing a specially crafted openssl.cnf file in OPENSSLDIR, a non-privile

  • 7.0 High severity

    ToDesk: Uncontrolled Search Path Element

    CVE-2025-4539Hainan

    A vulnerability was found in Hainan ToDesk 4.7.6.3. It has been declared as critical. This vulnerability affects unknown code in the library profapi.dll of the component DLL File Parser. The manipulation leads to uncontrolled search path. It is possible to lau

  • 7.0 High severity

    SunloginClient: Untrusted Search Path

    A vulnerability classified as critical has been found in Shanghai Bairui Information Technology SunloginClient 15.8.3.19819. This affects an unknown part in the library process.dll of the file sunlogin_guard.exe. The manipulation leads to uncontrolled search p

  • 7.8 High severity

    Discord: Untrusted Search Path

    CVE-2025-4525Discord

    A vulnerability, which was classified as critical, has been found in Discord 1.0.9188 on Windows. Affected by this issue is some unknown functionality in the library WINSTA.dll. The manipulation leads to uncontrolled search path. The attack needs to be approac

  • 7.0 High severity

    Home Updater: Untrusted Search Path

    CVE-2025-4455Patch My PC

    A vulnerability was found in Patch My PC Home Updater up to 5.1.3.0. It has been rated as critical. This issue affects some unknown processing in the library advapi32.dll/BCrypt.dll/comctl32.dll/crypt32.dll/dwmapi.dll/gdi32.dll/gdiplus.dll/imm32.dll/iphlpapi.d

  • 7.0 High severity

    Control Console: Untrusted Search Path

    CVE-2025-4272Mechrevo

    A vulnerability was found in Mechrevo Control Console 1.0.2.70. It has been rated as critical. Affected by this issue is some unknown functionality in the library C:\Program Files\OEM\MECHREVO Control Center\UniwillService\MyControlCenter\csCAPI.dll of the com

  • 7.8 High severity

    NetDrive: Uncontrolled Search Path Element

    CVE-2025-2769Bdrive

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

  • 7.8 High severity

    NetDrive: Uncontrolled Search Path Element

    CVE-2025-2768Bdrive

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

  • 7.0 High severity

    Secure Content Manager: Uncontrolled Search Path Element

    CVE-2024-12530OpenText

    Uncontrolled Search Path Element vulnerability in OpenText Secure Content Manager on Windows allows DLL Side-Loading.This issue affects Secure Content Manager: 23.4. End-users can potentially exploit the vulnerability to execute malicious code in the trusted c

  • 7.3 High severity

    bleachbit: Uncontrolled Search Path Element

    CVE-2025-32780Bleachbit

    BleachBit cleans files to free disk space and to maintain privacy. BleachBit for Windows up to version 4.6.2 is vulnerable to a DLL Hijacking vulnerability. By placing a malicious DLL with the name uuid.dll in the folder C:\Users\<username>\AppData\Local\Micro

  • 7.3 High severity

    SQL Server Management Studio 20.2: Uncontrolled Search Path Element

    CVE-2025-29803Microsoft

    Uncontrolled search path element in Visual Studio Tools for Applications and SQL Server Management Studio allows an authorized attacker to elevate privileges locally.

  • 7.8 High severity

    LabVIEW: Uncontrolled Search Path Element

    CVE-2025-2630NI

    There is a DLL hijacking vulnerability due to an uncontrolled search path that exists in NI LabVIEW. This vulnerability may result in arbitrary code execution. Successful exploitation requires an attacker to insert a malicious DLL into the uncontrolled search

  • 7.8 High severity

    LabVIEW: Uncontrolled Search Path Element

    CVE-2025-2629NI

    There is a DLL hijacking vulnerability due to an uncontrolled search path that exists in NI LabVIEW when loading NI Error Reporting. This vulnerability may result in arbitrary code execution. Successful exploitation requires an attacker to insert a malicious D

  • 8.4 High severity

    ESET NOD32 Antivirus: Uncontrolled Search Path Element

    CVE-2024-11859ESET, spol. s r.o.EPSS 2.07%

    DLL Search Order Hijacking vulnerability potentially allowed an attacker with administrator privileges to load a malicious dynamic-link library and execute its code.

  • 7.8 High severity

    Block Load: Uncontrolled Search Path Element

    CVE-2024-10930Carrier

    An Uncontrolled Search Path Element vulnerability exists which could allow a malicious actor to perform DLL hijacking and execute arbitrary code with escalated privileges.

  • 7.0 High severity

    Battle.Net: Untrusted Search Path

    CVE-2025-1804Blizzard

    A vulnerability was found in Blizzard Battle.Net up to 2.39.0.15212 on Windows and classified as critical. Affected by this issue is some unknown functionality in the library profapi.dll. The manipulation leads to uncontrolled search path. The attack needs to

  • 8.5 High severity

    i: Uncontrolled Search Path Element

    CVE-2024-55898IBM

    IBM i 7.2, 7.3, 7.4, and 7.5 could allow a user with the capability to compile or restore a program 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

    Trend Micro HouseCall for Home Networks: Uncontrolled Search Path Element

    CVE-2022-28339Trend Micro

    Trend Micro HouseCall for Home Networks version 5.3.1302 and below contains an uncontrolled search patch element vulnerability that could allow an attacker with low user privileges to create a malicious DLL that could lead to escalated privileges.

  • 7.3 High severity

    HVAC Energy Saving Program: Uncontrolled Search Path Element

    CVE-2024-57964Hitachi

    Insecure Loading of Dynamic Link Libraries have been discovered in HVAC Energy Saving Program, which could allow local attackers to potentially disclose information or execute arbitray code on affected systems. This issue affects HVAC Energy Saving Program:.

  • 7.3 High severity

    USB-CONVERTERCABLE DRIVER: Uncontrolled Search Path Element

    CVE-2024-57963Hitachi

    Insecure Loading of Dynamic Link Libraries have been discovered in USB-CONVERTERCABLE DRIVER, which could allow local attackers to potentially disclose information or execute arbitray code on affected systems. This issue affects USB-CONVERTERCABLE DRIVER:.

  • 7.8 High severity

    Intel(R) QuickAssist Technology software: Uncontrolled Search Path Element

    Uncontrolled search path for some Intel(R) QuickAssist Technology software before version 2.2.0 may allow an authenticated user to potentially enable escalation of privilege via local access.

  • 7.3 High severity

    AIM-T (AMD Integrated Management Technology)…: Uncontrolled Search Path Element

    CVE-2023-31361AMD

    A DLL hijacking vulnerability in AMD Integrated Management Technology (AIM-T) Manageability Service could allow an attacker to achieve privilege escalation potentially resulting in arbitrary code execution.