CVE-2024-27303
electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)
Description
electron-builder is a solution to package and build a ready for distribution Electron, Proton Native app for macOS, Windows and Linux. A vulnerability that only affects eletron-builder prior to 24.13.2 in Windows, 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. Version 24.13.2 fixes this issue. No known workaround exists. The code 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.
INFO
Published Date :
March 6, 2024, 7:15 p.m.
Last Modified :
Dec. 3, 2025, 8:50 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] |
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-27303.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-27303 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-27303
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-27303 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-27303 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Dec. 03, 2025
Action Type Old Value New Value Added CPE Configuration AND OR *cpe:2.3:a:electron:electron-builder:*:*:*:*:*:node.js:*:* versions up to (excluding) 24.13.2 OR cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Added Reference Type CVE: https://github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387 Types: Patch Added Reference Type CVE: https://github.com/electron-userland/electron-builder/pull/8059 Types: Issue Tracking Added Reference Type GitHub, Inc.: https://github.com/electron-userland/electron-builder/pull/8059 Types: Issue Tracking Added Reference Type CVE: https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55 Types: Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55 Types: Vendor Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387 Added Reference https://github.com/electron-userland/electron-builder/pull/8059 Added Reference https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
Mar. 06, 2024
Action Type Old Value New Value Added Description electron-builder is a solution to package and build a ready for distribution Electron, Proton Native app for macOS, Windows and Linux. A vulnerability that only affects eletron-builder prior to 24.13.2 in Windows, 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. Version 24.13.2 fixes this issue. No known workaround exists. The code 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. Added Reference GitHub, Inc. https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55 [No types assigned] Added Reference GitHub, Inc. https://github.com/electron-userland/electron-builder/pull/8059 [No types assigned] Added Reference GitHub, Inc. https://github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387 [No types assigned] Added CWE GitHub, Inc. CWE-426 Added CWE GitHub, Inc. CWE-427 Added CVSS V3.1 GitHub, Inc. AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H