{"answers":{"affected":"6 open source packages ship an affected version, including WixToolset.Sdk and wix.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29187 exists.","fix":"Upgrade WixToolset.Sdk to 4.0.5 or later.","what":"CVE-2024-29187 is a high-severity vulnerability in wixtoolset issues, published on 24 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-29187 and fix it if it is affected.\n\nWhat it is: CVE-2024-29187 is a high-severity vulnerability in wixtoolset issues, published on 24 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29187 exists.\n\nAffected packages and fixed versions:\n- WixToolset.Sdk (NuGet): affected all versions; fixed in 4.0.5\n- WixToolset.Sdk (NuGet): affected all versions; fixed in 4.0.5\n- wix (NuGet): affected all versions; fixed in 3.14.1\n- wix (NuGet): affected all versions; fixed in 3.14.1\n- wix (NuGet): affected from 4.0.0; fixed in 4.0.5\n- wix (NuGet): affected from 4.0.0; fixed in 4.0.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-29187/ (Markdown: https://insights.sbomify.com/CVE-2024-29187/index.md)","id":"CVE-2024-29187","markdown":"https://insights.sbomify.com/CVE-2024-29187/index.md","name":"CVE-2024-29187","record":{"aliases":["GHSA-rf39-3f98-xr7r"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"WiX installer toolset","requires_auth":"low_privilege","summary":"Standard users can hijack binaries in insecure temp directories during SYSTEM-level WiX installer execution, leading to privilege escalation.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"description":"WiX toolset lets developers create installers for Windows Installer, the Windows installation engine. When a bundle runs as SYSTEM user, Burn uses GetTempPathW which points to an insecure directory C:\\Windows\\Temp to drop and load multiple binaries. Standard users can hijack the binary before it's loaded in the application resulting in elevation of privileges. This vulnerability is fixed in 3.14.1 and 4.0.5.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"WiX based installers are vulnerable to binary hijack when run as SYSTEM","id":"CVE-2024-29187","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"privilege_escalation","year":"2024"},"n_packages":6,"n_references":3,"next":{"headline":"Malicious directory junction can cause WiX RemoveFoldersEx to possibly delete elevated files","id":"CVE-2024-29188"},"packages":[{"ecosystem":"NuGet","fixed":["4.0.5"],"introduced":["0"],"last_affected":[],"package":"WixToolset.Sdk","purl":null,"source":"GHSA-rf39-3f98-xr7r"},{"ecosystem":"NuGet","fixed":["4.0.5"],"introduced":["0"],"last_affected":[],"package":"WixToolset.Sdk","purl":"pkg:nuget/WixToolset.Sdk","source":"GHSA-rf39-3f98-xr7r"},{"ecosystem":"NuGet","fixed":["3.14.1"],"introduced":["0"],"last_affected":[],"package":"wix","purl":null,"source":"GHSA-rf39-3f98-xr7r"},{"ecosystem":"NuGet","fixed":["3.14.1"],"introduced":["0"],"last_affected":[],"package":"wix","purl":"pkg:nuget/wix","source":"GHSA-rf39-3f98-xr7r"},{"ecosystem":"NuGet","fixed":["4.0.5"],"introduced":["4.0.0"],"last_affected":[],"package":"wix","purl":null,"source":"GHSA-rf39-3f98-xr7r"},{"ecosystem":"NuGet","fixed":["4.0.5"],"introduced":["4.0.0"],"last_affected":[],"package":"wix","purl":"pkg:nuget/wix","source":"GHSA-rf39-3f98-xr7r"}],"prev":{"headline":"Slow String Operations via MultiPart Requests in Event-Driven Functions","id":"CVE-2024-29186"},"products":["issues"],"published":"2024-03-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-13","vendors":["wixtoolset"]},"summary":"Standard users can hijack binaries in insecure temp directories during SYSTEM-level WiX installer execution, leading to privilege escalation.","url":"https://insights.sbomify.com/CVE-2024-29187/"}