Read the docs
TI-2024-18141 Aliases CVE-2024-27303GHSA-r4pf-3v7r-hh55

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

Priority LOW 34CWE-426Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-426.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00282 20th percentileScored 2026-11-07
Fix Fixed electron-builder (electron-userland): 24.13.2app-builder-lib (npm): 24.13.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
electronelectron-builderbefore 24.13.224.13.2Patch availableCNA
—app-builder-lib (npm)before 24.13.224.13.2Patch availableGHSA-r4pf-3v7r-hh55
  • electron-builder Vendorelectron Affected before 24.13.2 Fixed in 24.13.2 Patch available CNA
  • app-builder-lib (npm) Vendor— Affected before 24.13.2 Fixed in 24.13.2 Patch available GHSA-r4pf-3v7r-hh55

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:electron:electron-builder:*:*:*:*:*:node.js:*:*before 24.13.2Vulnerableelectron
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*not specified by NVDRunning onMicrosoft
  • cpe:2.3:a:electron:electron-builder:*:*:*:*:*:node.js:*:* Versions before 24.13.2 Vulnerable ·electron
  • cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft

Remediation

  • Fix · CNA electron-builder (electron-userland) Fixed in 24.13.2
  • Fix · GHSA-r4pf-3v7r-hh55 app-builder-lib (npm) Fixed in 24.13.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-27303
  2. 2026-10-03 Alias added: GHSA-r4pf-3v7r-hh55

References

  • TI-2026-39496 Information disclosure in electron-builder CVSS 4.0HIGH 8.2
  • TI-2024-26621 Code Signing Bypass on Windows in electron-updater < 6.3.0-alpha.6 CVSS 3.1HIGH 7.5
  • TI-2026-39495 electron-updater: Uncontrolled search path elements within `AppImage` built by `app-builder-lib` CVSS 3.1HIGH 7.8

Sources