7.3

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

Analyzed
AliasesGHSA-r4pf-3v7r-hh55openSUSE-SU-2024:13782-1
Published 06-03-2024Last modified 13-08-2024

Vulnerability summary

CVE-2024-27303 is a high (CVSS 7.3) Untrusted Search Path vulnerability in electron-userland electron-builder. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 22.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.3/10
010
High · v3.1 (CVE.org)
EPSS score
0.28%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 06-03-2024
    PublishedVulnerability first disclosed.
  2. 13-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.28%

Chance of exploitation in the next 30 days

Percentile

22%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.28% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Electron1 product
Electron-userland1 product
Npm1 product
  • app-builder-lib< 24.13.2
Opensuse1 product
  • teleport&distro=openSUSE Tumbleweed< 15.1.6-1.1

4 vendors · 4 products

References

6 links