CVE-2024-24810: Wix WiX Toolset's .be TEMP Folder Vulnerability
HIGHCVE-2024-24810 is a HIGH (CVSS 8.2) wix toolset's .be temp folder vulnerability (CWE-426: Untrusted Search Path) affecting Wix libraries in the NuGet ecosystem. The issue involves wix toolset's .be temp folder is vulnerable to dll redirection attacks that allow the attacker to escalate privileges. Remediation is available by upgrading affected packages to version 4.0.4, 3.14.0.
CVE-2024-24810 at a Glance
Security Impact
CVSS: 8.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H).
How to Fix CVE-2024-24810
To remediate this vulnerability, upgrade all affected Wix dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade wix to 4.0.4
Upgrade wix to 3.14.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for wix
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-24810, inspect your project dependencies for Wix:
inspect dependencies for wix
Analyze the terminal output to locate any version of Wix in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-426: Untrusted Search Path, where the product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. In Wix, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-24810 Affected Wix Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2024-24810?
Which Wix versions are affected?
What version fixes CVE-2024-24810?
Is wix affected?
What is the CVSS score of CVE-2024-24810?
What CWE is associated with CVE-2024-24810?
How can I check NuGet dependencies for CVE-2024-24810?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7wh2-wxc7-9ph5",
"modified" : "2024-02-09T21:13:40Z",
"published" : "2024-02-08T18:23:49Z",
"aliases" : [ "CVE-2024-24810" ],
"summary" : "WiX Toolset's .be TEMP folder is vulnerable to DLL redirection attacks that allow the attacker to escalate privileges",
"details" : "### Summary\n.be TEMP folder is vulnerable to DLL redirection attacks that allow the attacker to escalate privileges.\n\n### Details\nIf the bundle is not run as admin, the user's TEMP folder is used and not the system TEMP folder. A utility is able to monitor the user's TEMP folder for changes and drop its own DLL into the **.be/<bundle>.Local** folder immediately when the .be folder is created. When the burn engine elevates, the malicious DLL receives elevated privileges.\n\n### PoC\nAs a standard, non-admin user:\n1. Monitor the user's TEMP folder for changes using ReadDirectoryChangesW\n2. On FILE_ACTION_ADDED, check if the folder name is .be\n3. Create a folder in .be named after the bundle + .Local (e.g. MyInstaller.exe.Local)\n4. Put the malicious COMCTL32.DLL in the .Local folder following the naming used for the real DLL (e.g. MyInstaller.exe.Local/x86_microsoft.windows.common-controls_.../COMCTL32.dll)\n5. Do hacker things when the engine escalates and the malicious DLL is loaded\n\nProper naming for the path can be obtained by using GetModuleHandle(\"comctl32.dll\") and GetModuleFileName.\n\n### Impact\nDLL redirection utilizing .exe.Local Windows capability. This impacts any installer built with the WiX installer framework.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "wix"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "wix"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.14.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/wixtoolset/issues/security/advisories/GHSA-7wh2-wxc7-9ph5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24810"
}, {
"type" : "WEB",
"url" : "https://github.com/wixtoolset/wix/commit/fec38b6461d0551339139a2fe52403a61942adc0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/wixtoolset/wix"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-426" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-08T18:23:49Z",
"nvd_published_at" : "2024-02-07T03:15:50Z"
}
}