ghsa-r4pf-3v7r-hh55
Vulnerability from github
Published
2024-03-04 20:42
Modified
2024-03-06 21:36
Severity ?
VLAI Severity ?
Summary
electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)
Details
Impact
Windows-Only: The NSIS installer makes a system call to open cmd.exe via NSExec in the .nsh
installer script. NSExec by default searches the current directory of where the installer is located before searching PATH
. This means that if an attacker can place a malicious executable file named cmd.exe in the same folder as the installer, the installer will run the malicious file.
Patches
Fixed in https://github.com/electron-userland/electron-builder/pull/8059
Workarounds
None, it executes at the installer-level before the app is present on the system, so there's no way to check if it exists in a current installer.
References
https://cwe.mitre.org/data/definitions/426.html https://cwe.mitre.org/data/definitions/427
{ "affected": [ { "package": { "ecosystem": "npm", "name": "app-builder-lib" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "24.13.2" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-27303" ], "database_specific": { "cwe_ids": [ "CWE-426", "CWE-427" ], "github_reviewed": true, "github_reviewed_at": "2024-03-04T20:42:45Z", "nvd_published_at": "2024-03-06T19:15:08Z", "severity": "HIGH" }, "details": "### Impact\nWindows-Only: The NSIS installer makes a system call to open cmd.exe via NSExec in the `.nsh` installer script. NSExec by default searches the current directory of where the installer is located before searching `PATH`. This means that if an attacker can place a malicious executable file named cmd.exe in the same folder as the installer, the installer will run the malicious file.\n\n### Patches\nFixed in https://github.com/electron-userland/electron-builder/pull/8059\n\n### Workarounds\nNone, it executes at the installer-level before the app is present on the system, so there\u0027s no way to check if it exists in a current installer.\n\n### References\nhttps://cwe.mitre.org/data/definitions/426.html\nhttps://cwe.mitre.org/data/definitions/427", "id": "GHSA-r4pf-3v7r-hh55", "modified": "2024-03-06T21:36:08Z", "published": "2024-03-04T20:42:45Z", "references": [ { "type": "WEB", "url": "https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-27303" }, { "type": "WEB", "url": "https://github.com/electron-userland/electron-builder/pull/8059" }, { "type": "WEB", "url": "https://github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387" }, { "type": "PACKAGE", "url": "https://github.com/electron-userland/electron-builder" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "type": "CVSS_V3" } ], "summary": "electron-builder\u0027s NSIS installer - execute arbitrary code on the target machine (Windows only)" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…