Loading
InstallShield setup.exe loads DLLs from its own folder (DLL hijacking, CWE-427): need a fixed version or setting

Hello,

A third-party security review found a DLL search-order hijacking vulnerability (CWE-427) in the setup.exe that InstallShield builds for our product.

Project details:

  • Project type: Basic MSI
  • Release: compressed, single setup.exe, x64
  • The setup includes a prerequisite (CodeMeter Runtime) in the ISSetupPrerequisites folder

Problem:

setup.exe looks for DLLs in its own folder before System32 (for example MPR.dll, VERSION.dll, COMCTL32.dll, msi.dll, WININET.dll). Users usually run the installer from a folder they can write to, such as Downloads. When the user accepts the UAC prompt, a malicious DLL placed next to setup.exe is loaded and runs with Administrator rights. This looks like the same class of issue as CVE-2016-2542.

Steps to reproduce:

  1. Build a compressed release with InstallShield 2021 R2.
  2. Copy setup.exe to the Downloads folder.
  3. Put a test DLL (for example version.dll) in the same folder.
  4. Run setup.exe and accept UAC. The test DLL is loaded into the elevated process.

Our current workaround:

We wrap setup.exe in our own launcher. The launcher extracts setup.exe to an admin-only folder and runs it from there. This is only a temporary fix. We use InstallShield for several products and need a proper fix in InstallShield itself.

Questions:

  1. Is this fixed in a newer InstallShield version or hotfix? If so, which version?
  2. Is there a project or release setting that makes setup.exe load DLLs only from System32? We need it to cover the copy of setup.exe that is relaunched from %TEMP% and the prerequisite launchers too.
  3. If there is no fix yet, is one planned, and when?

We can share the security report and Process Monitor logs if needed.


  • cvirata (Flexera Software)

    Hello @Nithyapriya​ - Thank you for raising this concern. Revenera takes reports of potential vulnerabilities seriously. We've notified our Revenera PSIRT team of the issue and they are currently assessing this. They will contact you directly via the Revenera PSIRT email (PSIRT@revenera.com) with updates and any questions should they have them.

  • Hi team,

         We upgraded to 2026 version of installshield, yet the dll's are initially getting loaded from application directory and that need to be restricted.

    They would call SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32) before any shell, ole or shlwapi call, or turn on that same system32-only setting when they build the launcher.

     

    Screenshot 2026-10-26 173019Thanks,

    Nithya

    Expand Post
  • cvirata (Flexera Software)

    Hi @Nithyapriya​ - We heard from our security team that you confirmed the resolution in the 2026 version. We will consider this question as resolved.

Loading
InstallShield setup.exe loads DLLs from its own folder (DLL hijacking, CWE-427): need a fixed version or setting