CVE-2024-27303

electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)

HIGH
7.3
CVSS Score
Published: March 6, 2024 at 06:35 PM UTC
Updated: June 17, 2026 at 07:19 AM UTC
2 products affected across 2 vendorsElectron BuilderElectron Builder

Using electron-builder by electron-userland?

Get instant alerts when new vulnerabilities affect electron-builder - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.3
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 24.13.2
Affected range stops below 24.13.2, so it looks safe — our inference, not a vendor statement
microsoft-windows (environment)
v < 24.13.2
Affected range stops below 24.13.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.3HIGHGitHub_M
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-426CWE-427

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card