CVE-2024-27303
published high CVSS 3.1 · 7.3electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| electron-userland | — | electron-builder< 24.13.2 | Affected | Not stated | GitHub_M |
| electron | — | electron-builder0 to < 24.13.2 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleportaarch64 | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleportppc64le | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleports390x | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleportx86_64 | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tbotaarch64 | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tbotppc64le | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
Show 10 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tbots390x | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tbotx86_64 | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tctlaarch64 | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tctlppc64le | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tctls390x | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tctlx86_64 | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tshaarch64 | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tshppc64le | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tshs390x | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | teleport-tshx86_64 | Advisory build | 15.1.6-1.1 | OPENSUSE-SU-2024:13782-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| electron-userland | electron-builder | < 24.13.2 (affected) | GitHub_M · cna |
| electron | electron-builder | 0 to < 24.13.2 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- CWE-426 CWE-426: Untrusted Search Path
- CWE-427 CWE-427: Uncontrolled Search Path Element
References
3Provider assertions
3GitHub_M · cna
electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8827da37f5f4b722a4d9d64f8f439ce5aab36ef64357283d9944912705a900b4
- Ingested
- 23 Sep 2026, 08:20:47 UTC
- Source record
- Official CVE record