Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-27303

HIGH 7.3EPSS 27%

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

Also known as GHSA-r4pf-3v7r-hh55

Mitigation

  • Upgrade app-builder-lib to 24.13.2 or later.

Who should check

  • Projects that depend on npm package app-builder-lib (< 24.13.2)
  • Anyone running electron-userland electron-builder < 24.13.2

Vulnerability facts

Affected
app-builder-lib < 24.13.2
Fixed in
24.13.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.41% chance of exploitation in 30 days (percentile 27, 2026-11-26)
CWE
CWE-426, CWE-427
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
npm app-builder-lib< 24.13.224.13.2osv
electron-userland electron-builder< 24.13.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-27303. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27303.md
Affected: app-builder-lib < 24.13.2
Fixed in: 24.13.2

Steps:
1. Search this machine and project for app-builder-lib (npm), electron-userland electron-builder: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-27303 being exploited?

There is no confirmed exploitation: CVE-2024-27303 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.41% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-27303?

High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2024-27303?

app-builder-lib < 24.13.2.

Is there a fix for CVE-2024-27303?

Yes. Fixed in 24.13.2. Upgrade app-builder-lib to 24.13.2 or later.

How do I check if I'm affected by CVE-2024-27303?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors