{"id":"GHSA-r4pf-3v7r-hh55","revision":"60433fbaa25e4ef9b5a0cfe5fb1de573","records":[{"revision":"60433fbaa25e4ef9b5a0cfe5fb1de573","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-r4pf-3v7r-hh55","aliases":["CVE-2024-27303"],"title":"electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)","description":"### Impact\nWindows-Only: 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.\n\n### Patches\nFixed in https://github.com/electron-userland/electron-builder/pull/8059\n\n### Workarounds\nNone, it 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.\n\n### References\nhttps://cwe.mitre.org/data/definitions/426.html\nhttps://cwe.mitre.org/data/definitions/427","state":0,"publishedAt":"2024-03-04T20:42:45+00:00","modifiedAt":"2026-09-10T03:50:10.7487341+00:00","affected":[{"ecosystem":"npm","name":"app-builder-lib","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"24.13.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55","https://nvd.nist.gov/vuln/detail/CVE-2024-27303","https://github.com/electron-userland/electron-builder/pull/8059","https://github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387","https://github.com/electron-userland/electron-builder"],"sourceUrl":"https://github.com/advisories/GHSA-r4pf-3v7r-hh55","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-r4pf-3v7r-hh55","identifiers":["GHSA-r4pf-3v7r-hh55","CVE-2024-27303"]},"retained":false,"historicalAffected":[]}],"coverage":[]}