CVE-2024-39698Electron-builder
High 7.5 No auth needed
Follow: this CVE · Electron · Electron-builder We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 47
- Auth required
- No
- Published
- Jul 9, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
electron-updater allows for automatic updates for Electron apps. The file `packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts` implements the signature validation routine for Electron applications on Windows. Because of the surrounding shell, a first pass by `cmd.exe` expands any environment variable found in command-line above. This creates a situation where `verifySignature()` can be tricked into validating the certificate of a different file than the one that was just downloaded. If the step is successful, the malicious update will be executed even if its signature is invalid. This attack assumes a compromised update manifest (server compromise, Man-in-the-Middle attack if fetched over HTTP, Cross-Site Scripting to point the application to a malicious updater server, etc.). The patch is available starting from 6.3.0-alpha.6.
What to do
- Apply the vendor's security update for Electron-builder.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | electron-updater |
< 6.3.0-alpha.6 |
6.3.0-alpha.6 |
npm install electron-updater@6.3.0-alpha.6 |
Per OSV / GitHub Advisories (GHSA-9jxc-qjr9-vjxq). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| electron | electron-builder | < 6.3.0 |
| electron | electron-builder | 6.3.0 |
| electron | electron-builder | 6.3.0 |
| electron | electron-builder | 6.3.0 |
| electron | electron-builder | 6.3.0 |
| electron | electron-builder | 6.3.0 |
| electron | electron-builder | 6.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- github.com Patch
- github.com Issue Tracking Patch
- github.com Exploit Vendor Advisory