{"id":"CVE-2024-29188","published":"2024-03-24T19:46:25Z","modified":"2024-08-02T01:10:54Z","title":"Malicious directory junction can cause WiX RemoveFoldersEx to possibly delete elevated files","vendor":"wixtoolset","product":"issues","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00242,"percentile":0.15635,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/wixtoolset/issues/security/advisories/GHSA-jx4p-m4wm-vvjg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/wixtoolset/wix/commit/2e5960b575881567a8807e6b8b9c513138b19742","tags":["x_refsource_MISC"]},{"url":"https://github.com/wixtoolset/wix3/commit/93eeb5f6835776694021f66d4226c262c67d487a","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":3.13},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"wixtoolset","affectedVersions":[{"vendor":"wixtoolset","product":"issues","versions":["< 3.14.1",">= 4.0.0, < 4.0.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-28T18:20:54.492822Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"wix","vulnerableRanges":["<3.14.1",">=4.0.0, <4.0.5"],"patched":["3.14.1","4.0.5"],"from":["GHSA-jx4p-m4wm-vvjg"],"provenance":"source"},{"ecosystem":"NuGet","package":"WixToolset.Util.wixext","vulnerableRanges":["<4.0.5"],"patched":["4.0.5"],"from":["GHSA-jx4p-m4wm-vvjg"],"provenance":"source"}],"summary":{"text":"The WiX Toolset's custom action behind its RemoveFolderEx functionality, which recursively deletes directory trees during installation or uninstallation, mishandles directory junctions within per-user folders when a per-machine installer targets them. An attacker with local low-privilege access and the ability to create a junction in a per-user folder can cause a per-machine installer, run after an administrator approves it, to delete the protected directory the junction points to, which requires the victim to interact with the installer.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:21Z"},"euvd":{"id":"EUVD-2024-0956","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-wixtoolset-issues-cve-2024-29187","parents":[{"from":"CVE-2024-29187","to":"CVE-2024-29188","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/DTF/Tools/SfxCA/SfxUtil.cpp"],"commits":["https://github.com/wixtoolset/wix3/commit/6d372e5169f1a334a395cdf496443bc0732098e9","https://github.com/wixtoolset/wix3/commit/93eeb5f6835776694021f66d4226c262c67d487a"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-24810","published":"2024-02-07","fixed":"4.0.4","kev":false,"link":{"from":"CVE-2024-24810","to":"CVE-2024-29188","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:wix","fromFixed":"4.0.4","toFixed":"4.0.5","daysApart":46},{"kind":"version-step","provenance":"source","package":"NuGet:wix","fromFixed":"3.14.0","toFixed":"3.14.1","daysApart":46}]}},{"cve":"CVE-2024-29187","published":"2024-03-24","fixed":"4.0.5","kev":false},{"cve":"CVE-2024-29188","published":"2024-03-24","fixed":"4.0.5","kev":false}],"package":"NuGet:wix"}}