CVE-2024-39698: Code Signing Bypass on Windows in electron-updater < 6.3.0-alpha.6
Vulnerability summary
CVE-2024-39698 is a high (CVSS 7.5) vulnerability in electron-userland electron-builder. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 38.7% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 09-07-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
39%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.43% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundElectron Builder
Maturity: poc
Weaknesses
CWE · root cause- CWE-154Improper Neutralization of Variable Name DelimitersThe product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as variable name delimiters when they are sent to a downstream component, such as a "$" that could be used to access an environment variable.
- CWE-295Improper Certificate ValidationThe product does not validate, or incorrectly validates, a certificate.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Electron1 product
- electron-builder< 6.3.0 | 6.3.0:alpha0 | 6.3.0:alpha1 | 6.3.0:alpha2 | 6.3.0:alpha3 | 6.3.0:alpha4 | 6.3.0:alpha5
Electron-userland1 product
- electron-builder< 6.3.0-alpha.6
Npm1 product
- electron-updater< 6.3.0-alpha.6
3 vendors · 3 products
References
6 links- github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxqX Refsource CONFIRMWEBExploitVendor Advisory
- github.com/electron-userland/electron-builder/commit/ac2e6a25aa491c1ef5167a552c19fc2085cd427fX Refsource MISCWEBPatch