{"cve":"CVE-2024-27303","nvd":{"published":"2024-03-06T19:15:08.553","modified":"2026-06-17T07:19:36.550","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3},"cwes":["CWE-426","CWE-427"],"references":["https://github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387","https://github.com/electron-userland/electron-builder/pull/8059","https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55","https://github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387","https://github.com/electron-userland/electron-builder/pull/8059"],"products":["electron:electron-builder"],"source":"nvd","synced_at":"2026-10-19T21:46:54.846886191+00:00"},"epss":{"cve":"CVE-2024-27303","score":0.00282,"percentile":0.20762,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-r4pf-3v7r-hh55","url":"https://osv.dev/vulnerability/GHSA-r4pf-3v7r-hh55","summary":"electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)","modified":"2026-09-10T03:50:10.748734113Z","packages":[{"ecosystem":"npm","name":"app-builder-lib","purl":"pkg:npm/app-builder-lib","ranges":["<24.13.2"],"fixed":["24.13.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}