{"schemaVersion":4,"id":"CVE-2024-27303","aliases":["GHSA-r4pf-3v7r-hh55","openSUSE-SU-2024:13782-1"],"status":"published","duplicateOf":null,"title":"electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only)","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.","dates":{"published":"2024-03-06T18:35:37.973Z","modified":"2024-08-13T17:12:24.776Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.3,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00282,"percentile":0.22193,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00282},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00282,"percentile":0.22193}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00282,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00282,"percentile":0.22193}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-426","name":"Untrusted Search Path","description":"The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/426.html"},{"id":"CWE-427","name":"Uncontrolled Search Path Element","description":"The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/427.html"}],"affected":[{"vendor":"electron-userland","product":"electron-builder","name":"electron-builder","label":"electron-builder","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 24.13.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"24.13.2","endInclusive":false}}],"versionsText":"< 24.13.2","eol":null,"hubHref":"/vendor/electron-userland/electron-builder"},{"vendor":"electron","product":"electron-builder","name":"electron-builder","label":"electron-builder","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 24.13.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"24.13.2","endInclusive":false}}],"versionsText":"< 24.13.2","eol":null,"hubHref":"/vendor/electron/electron-builder"},{"vendor":"Npm","product":"app-builder-lib","name":"app-builder-lib","label":"app-builder-lib","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/app-builder-lib","purlType":"npm","versions":[{"text":"< 24.13.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"24.13.2","endInclusive":false}}],"versionsText":"< 24.13.2","eol":null,"hubHref":null},{"vendor":"opensuse","product":"teleport&distro=openSUSE Tumbleweed","name":"teleport","label":"teleport&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/teleport&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 15.1.6-1.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"15.1.6-1.1","endInclusive":false}}],"versionsText":"< 15.1.6-1.1","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55","label":"github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://github.com/electron-userland/electron-builder/pull/8059","label":"github.com/electron-userland/electron-builder/pull/8059","hostname":"github.com","tags":["X Refsource MISC","WEB","Issue Tracking"]},{"url":"https://github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387","label":"github.com/electron-userland/electron-builder/commit/8f4acff3c2d45c1cb07779bb3fe79644408ee387","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27303","label":"nvd.nist.gov/vuln/detail/CVE-2024-27303","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/electron-userland/electron-builder","label":"github.com/electron-userland/electron-builder","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://www.suse.com/security/cve/CVE-2024-27303","label":"www.suse.com/security/cve/CVE-2024-27303","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-03-06T18:35:37.973Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-13T17:12:24.776Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,73],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00282,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2024-08-13T17:12:24.776Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"osv_npm","date":"2024-08-13T17:12:24.776Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-13T17:12:24.776Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2024-03-07T20:09:00.747Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00282,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:07:40.743Z","stale":false,"partial":false}}