Skip to main content
← All vulnerabilities
CVE-2024-29188GHSA-JX4P-M4WM-VVJG

Malicious directory junction can cause WiX RemoveFoldersEx to possibly delete elevated files

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.14.1, 4.0.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

WiX toolset lets developers create installers for Windows Installer, the Windows installation engine. The custom action behind WiX's `RemoveFolderEx` functionality could allow a standard user to delete protected directories. `RemoveFolderEx` deletes an entire directory tree during installation or uninstallation. It does so by recursing every subdirectory starting at a specified directory and adding each subdirectory to the list of directories Windows Installer should delete. If the setup author instructed `RemoveFolderEx` to delete a per-user folder from a per-machine installer, an attacker could create a directory junction in that per-user folder pointing to a per-machine, protected directory. Windows Installer, when executing the per-machine installer after approval by an administrator, would delete the target of the directory junction. This vulnerability is fixed in 3.14.1 and 4.0.5.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • wixtoolset issues

    fixed in 3.14.1; From 4.0.0 · fixed in 4.0.5

  • wixNuGet

    fixed in 3.14.1

  • wixNuGet

    From 4.0.0 · fixed in 4.0.5

  • WixToolset.Util.wixextNuGet

    fixed in 4.0.5

References 3

GitHub · wixtoolset/issues

GitHub · wixtoolset/wix

GitHub · wixtoolset/wix3