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.
CVE-2024-27303 - High Severity Vulnerability
Vulnerable Library - app-builder-lib-20.28.4.tgz
electron-builder lib
Library home page: https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-20.28.4.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/app-builder-lib/package.json
Dependency Hierarchy: - electron-builder-20.28.4.tgz (Root Library) - :x: **app-builder-lib-20.28.4.tgz** (Vulnerable Library)
Found in HEAD commit: 3c70ff18bc4c76aff0a341a956ece6590d8f19e4
Found in base branch: development
Vulnerability Details
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.
Publish Date: 2024-03-06
URL: CVE-2024-27303
CVSS 3 Score Details (7.3)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55
Release Date: 2024-03-06
Fix Resolution (app-builder-lib): 24.13.2
Direct dependency fix Resolution (electron-builder): 24.13.2
Step up your Open Source Security Game with Mend here