{"id":"CVE-2024-29188","state":"PUBLISHED","title":"Malicious directory junction can cause WiX RemoveFoldersEx to possibly delete elevated files","description":"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.","publishedAt":"2024-03-24T19:46:25.875Z","updatedAt":"2024-08-02T01:10:54.532Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["wixtoolset issues"],"affected":[{"vendor":"wixtoolset","product":"issues","versions":[{"version":"< 3.14.1","status":"affected"},{"version":">= 4.0.0, < 4.0.5","status":"affected"}]}],"references":["https://github.com/wixtoolset/issues/security/advisories/GHSA-jx4p-m4wm-vvjg","https://github.com/wixtoolset/wix/commit/2e5960b575881567a8807e6b8b9c513138b19742","https://github.com/wixtoolset/wix3/commit/93eeb5f6835776694021f66d4226c262c67d487a"],"weaknesses":["CWE-59"],"ingestedAt":"2026-10-29T20:07:21.467Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/29xxx/CVE-2024-29188.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-29188","state":"PUBLISHED","datePublished":"2024-03-24T19:46:25.875Z","dateUpdated":"2024-08-02T01:10:54.532Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-03-18T17:07:00.094Z"},"containers":{"cna":{"title":"Malicious directory junction can cause WiX RemoveFoldersEx to possibly delete elevated files","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"wixtoolset","product":"issues","versions":[{"version":"< 3.14.1","status":"affected"},{"version":">= 4.0.0, < 4.0.5","status":"affected"}]}],"references":[{"url":"https://github.com/wixtoolset/issues/security/advisories/GHSA-jx4p-m4wm-vvjg","name":"https://github.com/wixtoolset/issues/security/advisories/GHSA-jx4p-m4wm-vvjg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/wixtoolset/wix/commit/2e5960b575881567a8807e6b8b9c513138b19742","name":"https://github.com/wixtoolset/wix/commit/2e5960b575881567a8807e6b8b9c513138b19742","tags":["x_refsource_MISC"]},{"url":"https://github.com/wixtoolset/wix3/commit/93eeb5f6835776694021f66d4226c262c67d487a","name":"https://github.com/wixtoolset/wix3/commit/93eeb5f6835776694021f66d4226c262c67d487a","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","lang":"en","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-03-24T19:46:25.875Z"},"source":{"advisory":"GHSA-jx4p-m4wm-vvjg","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-29188","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-03-28T18:20:54.492822Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:57:33.971Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/wixtoolset/issues/security/advisories/GHSA-jx4p-m4wm-vvjg","name":"https://github.com/wixtoolset/issues/security/advisories/GHSA-jx4p-m4wm-vvjg","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/wixtoolset/wix/commit/2e5960b575881567a8807e6b8b9c513138b19742","name":"https://github.com/wixtoolset/wix/commit/2e5960b575881567a8807e6b8b9c513138b19742","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/wixtoolset/wix3/commit/93eeb5f6835776694021f66d4226c262c67d487a","name":"https://github.com/wixtoolset/wix3/commit/93eeb5f6835776694021f66d4226c262c67d487a","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T01:10:54.532Z"}}]}}}