electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| electron | electron-builder | before 24.13.2 | 24.13.2 | Patch available | CNA |
| — | app-builder-lib (npm) | before 24.13.2 | 24.13.2 | Patch available | GHSA-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
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
- 2026-10-02 Threatist record created from CVE-2024-27303
- 2026-10-03 Alias added: GHSA-r4pf-3v7r-hh55
References
Advisory 2
More Electron-builder vulnerabilities
- 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
- CVE-2024-27303 · CVE Program
- CVE-2024-27303 · NVD
- FIRST EPSS
- GHSA-r4pf-3v7r-hh55 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences