Code Signing Bypass on Windows in electron-updater < 6.3.0-alpha.6
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-295.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| electron | electron-builder | before 6.3.0-alpha.6 | 6.3.0-alpha.6 | Patch available | CNA |
| — | electron-updater (npm) | before 6.3.0-alpha.6 | 6.3.0-alpha.6 | Patch available | GHSA-9jxc-qjr9-vjxq |
- electron-builder Vendorelectron Affected before 6.3.0-alpha.6 Fixed in 6.3.0-alpha.6 Patch available CNA
- electron-updater (npm) Vendor— Affected before 6.3.0-alpha.6 Fixed in 6.3.0-alpha.6 Patch available GHSA-9jxc-qjr9-vjxq
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:electron:electron-builder:*:*:*:*:*:node.js:*:* | before 6.3.0 | Vulnerable | electron |
| cpe:2.3:a:electron:electron-builder:6.3.0:alpha0:*:*:*:node.js:*:* | 6.3.0 alpha0 | Vulnerable | electron |
| cpe:2.3:a:electron:electron-builder:6.3.0:alpha1:*:*:*:node.js:*:* | 6.3.0 alpha1 | Vulnerable | electron |
| cpe:2.3:a:electron:electron-builder:6.3.0:alpha2:*:*:*:node.js:*:* | 6.3.0 alpha2 | Vulnerable | electron |
| cpe:2.3:a:electron:electron-builder:6.3.0:alpha3:*:*:*:node.js:*:* | 6.3.0 alpha3 | Vulnerable | electron |
| cpe:2.3:a:electron:electron-builder:6.3.0:alpha4:*:*:*:node.js:*:* | 6.3.0 alpha4 | Vulnerable | electron |
| cpe:2.3:a:electron:electron-builder:6.3.0:alpha5:*:*:*:node.js:*:* | 6.3.0 alpha5 | Vulnerable | electron |
- cpe:2.3:a:electron:electron-builder:*:*:*:*:*:node.js:*:* Versions before 6.3.0 Vulnerable ·electron
- cpe:2.3:a:electron:electron-builder:6.3.0:alpha0:*:*:*:node.js:*:* Versions 6.3.0 alpha0 Vulnerable ·electron
- cpe:2.3:a:electron:electron-builder:6.3.0:alpha1:*:*:*:node.js:*:* Versions 6.3.0 alpha1 Vulnerable ·electron
- cpe:2.3:a:electron:electron-builder:6.3.0:alpha2:*:*:*:node.js:*:* Versions 6.3.0 alpha2 Vulnerable ·electron
- cpe:2.3:a:electron:electron-builder:6.3.0:alpha3:*:*:*:node.js:*:* Versions 6.3.0 alpha3 Vulnerable ·electron
- cpe:2.3:a:electron:electron-builder:6.3.0:alpha4:*:*:*:node.js:*:* Versions 6.3.0 alpha4 Vulnerable ·electron
- cpe:2.3:a:electron:electron-builder:6.3.0:alpha5:*:*:*:node.js:*:* Versions 6.3.0 alpha5 Vulnerable ·electron
Remediation
- Fix · CNA electron-builder (electron-userland) Fixed in 6.3.0-alpha.6
- Fix · GHSA-9jxc-qjr9-vjxq electron-updater (npm) Fixed in 6.3.0-alpha.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-39698
- 2026-10-03 Alias added: GHSA-9jxc-qjr9-vjxq
References
Exploit 1
Patch 2
More Electron-builder vulnerabilities
- TI-2026-39496 Information disclosure in electron-builder CVSS 4.0HIGH 8.2
- TI-2026-39495 electron-updater: Uncontrolled search path elements within `AppImage` built by `app-builder-lib` CVSS 3.1HIGH 7.8
- TI-2024-18141 electron-builder's NSIS installer - execute arbitrary code on the target machine (Windows only) CVSS 3.1HIGH 7.3
Sources
- CVE-2024-39698 · CVE Program
- CVE-2024-39698 · NVD
- FIRST EPSS
- GHSA-9jxc-qjr9-vjxq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences