BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2024-27303 in Electron-Builder and 1 more product

High 7.3

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

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.3
EPSS0.4%
EPSS percentile27th
FixUnknown

Requires local access, low complexity, low privileges required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Electron Electron-Builder < 24.13.2

Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Microsoft Windows

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-27303
BreachSpider IDBS-2024-GLOBAL-205643-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Published2024-03-06
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-426: CWE-426

CWE-427: CWE-427

Related attack patterns (CAPEC)

CAPEC-38 Leveraging/Manipulating Configuration File Search Paths via CWE-426, CWE-427

CAPEC-471 Search Order Hijacking via CWE-427

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in electron-builder prior to version 24.13.2 on Windows allows for potential command injection due to the NSIS installer script using NSExec to open cmd.exe, which searches the current directory first.

The NSIS installer script in electron-builder versions prior to 24.13.2 uses NSExec to open cmd.exe. Since NSExec searches the current directory for cmd.exe before searching the system PATH, an attacker could place a malicious cmd.exe in the same directory as the installer to execute arbitrary commands with the installer's privileges.

Questions

What is CVE-2024-27303?

A vulnerability in electron-builder prior to version 24.13.2 on Windows allows for potential command injection due to the NSIS installer script using NSExec to open cmd.exe, which searches the current directory first.

What is the CVSS score for CVE-2024-27303?

CVE-2024-27303 has CVSS 7.3 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.4%.

Is CVE-2024-27303 actively exploited?

No confirmed active exploitation of CVE-2024-27303 as of 2026-09-25.

How do I remediate CVE-2024-27303?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2024-27303?

CVE-2024-27303 affects Electron Electron-Builder.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Electron","product":"Electron-Builder","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.