GHSA-8v28-3g86-chj5: PanelSwWix4.Sdk PanelSwWix4.Sdk .be TEMP Folder Is Vulnerability

HIGH
CVSS 8.2
CWE-426
Published
Advisory Summary

GHSA-8v28-3g86-chj5 is a HIGH (CVSS 8.2) panelswwix4.sdk .be temp folder is vulnerability (CWE-426: Untrusted Search Path) affecting PanelSwWix4.Sdk libraries in the NuGet ecosystem. The issue involves panelswwix4.sdk .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 5.0.0-psw-wix.0251-40.

GHSA-8v28-3g86-chj5 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8v28-3g86-chj5
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-426: Untrusted Search Path
Affected Product PanelSwWix4.Sdk
Package Ecosystem NuGet
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-8v28-3g86-chj5

To remediate this vulnerability, upgrade all affected PanelSwWix4.Sdk dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

PanelSwWix4.Sdk fixed: 5.0.0-psw-wix.0251-40
Upgrade PanelSwWix4.Sdk to 5.0.0-psw-wix.0251-40
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for PanelSwWix4.Sdk

How to Check if You Are Affected

To determine whether your application is affected by GHSA-8v28-3g86-chj5, inspect your project dependencies for PanelSwWix4.Sdk:

inspect dependencies for PanelSwWix4.Sdk

Analyze the terminal output to locate any version of PanelSwWix4.Sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.0-psw-wix.0251-40), 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 PanelSwWix4.Sdk, 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

# Summary .be TEMP folder is vulnerable to DLL redirection attacks that allow the attacker to escalate privileges. # Details If 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/.Local folder immediately when the .be folder is created. When the burn engine elevates, the malicious DLL receives elevated privileges. # PoC As a standard, non-admin user: 1. Monitor the user's TEMP folder for changes using ReadDirectoryChangesW 1. On FILE_ACTION_ADDED, check if the folder name is .be 1. Create a folder in .be named after the bundle + .Local (e.g. MyInstaller.exe.Local) 1. 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) 1. Do hacker things when the engine escalates and the malicious DLL is loaded Proper naming for the path can be obtained by using GetModuleHandle("comctl32.dll") and GetModuleFileName. # Impact DLL redirection utilizing .exe.Local Windows capability. This impacts any installer built with the WiX installer framework.

GHSA-8v28-3g86-chj5 Affected PanelSwWix4.Sdk Versions

1 component(s)
Fixed Versions:
5.0.0-psw-wix.0251-40
Product / Package Ecosystem Affected Versions Fixed Version
PanelSwWix4.Sdk
NuGet
< 5.0.0-psw-wix.0251-40
5.0.0-psw-wix.0251-40

References

Frequently Asked Questions

What is GHSA-8v28-3g86-chj5?
GHSA-8v28-3g86-chj5 is a security vulnerability in PanelSwWix4.Sdk involving PanelSwWix4.Sdk .be TEMP folder is vulnerable to DLL redirection attacks that allow the attacker to escalate privileges under CWE-426: Untrusted Search Path.
Which PanelSwWix4.Sdk versions are affected?
Affected versions include releases prior to 5.0.0-psw-wix.0251-40 across affected packages: PanelSwWix4.Sdk.
What version fixes GHSA-8v28-3g86-chj5?
Upgrading to 5.0.0-psw-wix.0251-40 (or the latest patched release for your respective branch) resolves the vulnerability.
Is PanelSwWix4.Sdk affected?
Yes, PanelSwWix4.Sdk is affected in releases prior to 5.0.0-psw-wix.0251-40. Upgrade your dependency to 5.0.0-psw-wix.0251-40 or later.
What is the CVSS score of GHSA-8v28-3g86-chj5?
GHSA-8v28-3g86-chj5 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-8v28-3g86-chj5?
GHSA-8v28-3g86-chj5 is classified under CWE-426: Untrusted Search Path (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.).
How can I check NuGet dependencies for GHSA-8v28-3g86-chj5?
Run the dependency tree command: 'inspect dependencies for PanelSwWix4.Sdk'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8v28-3g86-chj5",
  "modified" : "2024-02-08T18:24:35Z",
  "published" : "2024-02-08T18:24:35Z",
  "aliases" : [ ],
  "summary" : "PanelSwWix4.Sdk  .be TEMP folder is vulnerable to DLL redirection attacks that allow the attacker to escalate privileges",
  "details" : "# Summary\n\n.be TEMP folder is vulnerable to DLL redirection attacks that allow the attacker to escalate privileges.\n\n# Details\n\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/.Local folder immediately when the .be folder is created. When the burn engine elevates, the malicious DLL receives elevated privileges.\n\n# PoC\n\nAs a standard, non-admin user:\n\n1.  Monitor the user's TEMP folder for changes using ReadDirectoryChangesW\n1.  On FILE_ACTION_ADDED, check if the folder name is .be\n1.  Create a folder in .be named after the bundle + .Local (e.g. MyInstaller.exe.Local)\n1.  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)\n1.  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\n\nDLL redirection utilizing .exe.Local Windows capability. This impacts any installer built with the WiX installer framework.\n",
  "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" : "PanelSwWix4.Sdk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.0-psw-wix.0251-40"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nirbar/wix4/security/advisories/GHSA-8v28-3g86-chj5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nirbar/wix4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-426" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-08T18:24:35Z",
    "nvd_published_at" : null
  }
}