7.3

CVE-2024-27303: electron-userland electron-builder Untrusted Search Path

CVSS: 7.3v3.1HighAnalyzed
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 19.4% of scored vulnerabilities.

Overall risk
29/100
0100
Medium · default modelHow is this calculated?
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 listedIn no KEV catalog
RansomwareNone recordedNo known 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

19%

Versus all other CVEs

30-day change

0.00 pp

From 0.28% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.28%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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