Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-29188 Overview
CVE-2024-29188 is a symbolic link following vulnerability [CWE-59] in the WiX Toolset, a widely used framework for building Windows Installer (MSI) packages. The flaw resides in the custom action behind the RemoveFolderEx functionality, which recursively enumerates subdirectories and queues them for deletion by Windows Installer. A standard user can plant a directory junction inside a per-user folder referenced by a per-machine installer. When an administrator approves and runs that installer, Windows Installer follows the junction and deletes the target protected directory with SYSTEM privileges.
Critical Impact
A low-privileged local user can escalate the destructive scope of an administrator-approved installer to delete arbitrary protected directories, enabling privilege escalation and denial of service.
Affected Products
- WiX Toolset v3 (fixed in 3.14.1)
- WiX Toolset v4 (fixed in 4.0.5)
- MSI installers built with RemoveFolderEx custom action targeting per-user paths from per-machine installers
Discovery Timeline
- 2024-03-24 - CVE-2024-29188 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-29188
Vulnerability Analysis
The RemoveFolderEx custom action in WiX recursively walks a directory tree and adds each discovered subdirectory to the Windows Installer RemoveFile table. The recursion routines in SfxUtil.cpp and RemoveFoldersEx.cpp did not check whether a directory entry was a reparse point before descending into it. Windows directory junctions are reparse points that transparently redirect file system operations to another path, including protected locations.
When a per-machine installer invokes RemoveFolderEx against a path under a per-user directory, the enumeration runs under the user's context but queues deletions executed later by the Windows Installer service with elevated privileges. A standard user can replace a target subdirectory with a junction pointing to C:\Windows\System32 or any other protected directory. The administrator-approved uninstall then deletes the junction target, corrupting the system.
Root Cause
The root cause is missing validation of the FILE_ATTRIBUTE_REPARSE_POINT flag during directory recursion. Both DeleteDirectory in SfxUtil.cpp and the recursive logic in RemoveFoldersEx.cpp treated reparse points as ordinary directories. This TOCTOU-adjacent flaw allows an attacker to substitute a junction between the enumeration phase and the deletion phase executed by Windows Installer.
Attack Vector
Exploitation requires local access, low privileges, and user interaction in the form of an administrator installing or uninstalling a vulnerable MSI. The attacker pre-stages a directory junction in a writable per-user path that the installer will remove. When the installer executes, the Windows Installer service deletes the junction target under its SYSTEM context.
// Patch: src/ext/Util/ca/RemoveFoldersEx.cpp - skip reparse points
// Do NOT follow junctions.
DWORD dwAttributes = ::GetFileAttributesW(wzPath);
if (dwAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
{
WcaLog(LOGMSG_STANDARD, "Path is a junction; skipping: %ls", wzPath);
ExitFunction();
}
// First recurse down to all the child directories.
hr = StrAllocFormatted(&sczSearch, L"%s*", wzPath);
ExitOnFailure(hr, "Failed to allocate file search string in path: %S", wzPath);
// Source: https://github.com/wixtoolset/wix/commit/2e5960b575881567a8807e6b8b9c513138b19742
// Patch: src/dtf/SfxCA/SfxUtil.cpp - skip reparse points during recursion
StringCchCopy(szPath + cchDir + 1, cchPathBuf - (cchDir + 1), fd.cFileName);
if ((fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0)
{
if (wcscmp(fd.cFileName, L".") != 0
&& wcscmp(fd.cFileName, L"..") != 0
&& ((fd.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) == 0))
{
DeleteDirectory(szPath);
}
}
// Source: https://github.com/wixtoolset/wix/commit/2e5960b575881567a8807e6b8b9c513138b19742
Detection Methods for CVE-2024-29188
Indicators of Compromise
- Creation of directory junctions by standard user processes inside paths typically consumed by MSI uninstallers (for example, %LOCALAPPDATA% subfolders tied to a per-machine product).
- Windows Installer service (msiexec.exe) deleting files under C:\Windows, C:\Program Files, or other protected roots during an unrelated product uninstall.
- MSI log entries from the WixRemoveFoldersEx custom action recursing into user-writable paths.
Detection Strategies
- Hunt for CreateFile or DeviceIoControl operations issuing FSCTL_SET_REPARSE_POINT from non-administrative processes targeting paths that MSI packages will later remove.
- Correlate msiexec.exe child file-deletion telemetry with preceding junction creation in the same path by a different, lower-privileged user process.
- Inspect installer vendors' MSI packages for use of WixRemoveFoldersEx against per-user directories and flag those built with WiX versions earlier than 3.14.1 or 4.0.5.
Monitoring Recommendations
- Enable Sysmon Event ID 11 (FileCreate) and Event ID 1 (ProcessCreate) to track reparse-point creation preceding installer execution.
- Audit Windows Installer log files (%TEMP%\MSI*.log) for RemoveFolderEx entries referencing user-writable paths.
- Monitor for unexpected file deletions in System32, Program Files, and driver directories tied to installer activity.
How to Mitigate CVE-2024-29188
Immediate Actions Required
- Upgrade WiX Toolset to 3.14.1 (v3 branch) or 4.0.5 (v4 branch) and rebuild all affected installers.
- Audit existing MSI packages for WixRemoveFoldersEx custom actions targeting per-user directories from per-machine installers and remove or redesign them.
- Re-sign and redistribute patched installers to downstream users to replace vulnerable copies in circulation.
Patch Information
The WiX project published fixes in the GitHub Security Advisory GHSA-jx4p-m4wm-vvjg. The remediation adds a FILE_ATTRIBUTE_REPARSE_POINT check so recursion stops at junctions. See the WiX v4 commit 2e5960b and the WiX v3 commit 93eeb5f.
Workarounds
- Avoid using RemoveFolderEx against per-user directories from per-machine installers; prefer per-user installers or explicit RemoveFile entries.
- Restrict installer execution to trusted administrators and avoid running vulnerable MSIs on multi-user systems where standard users can stage junctions.
- If rebuilding is not immediately possible, pre-check target directories for reparse points before invoking the installer and refuse execution when detected.
# PowerShell: scan a target path for reparse points before running a vulnerable installer
Get-ChildItem -Path 'C:\Users\<user>\AppData\Local\VendorApp' -Recurse -Force |
Where-Object { $_.Attributes -band [IO.FileAttributes]::ReparsePoint } |
Select-Object FullName, Attributes
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

