CVE-2024-39698: electron-updater - Command Injection
- Cve: CVE-2024-39698
- Name: electron-updater - Command Injection
- 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.
- Impact: Attackers can execute malicious code by tricking the app into accepting invalid signatures, leading to remote code execution or system compromise.
- Remediation: Update to version 6.3.0-alpha.6 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00425
- Epss percentile: 0.37559
- Assignee: [email protected]
- Published at: 2024-07-09T18:15:10Z
- Age in days: 868
- Modified at: 2026-06-17T07:42:29Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-39698
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-154 | Improper Neutralization of Variable Name Delimiters |
| CWE-295 | Improper Certificate Validation |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxq | nvd | 2024-07-09 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| electron: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 | no | nvd | /v1/products/electron/electron-builder |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| electron-userland/electron-builder | commit, fix, package, pull, security_advisory | yes | /v1/repositories/electron-userland/electron-builder |
Index
- Repositories: 29
- Repositories high signal: 22
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-07-09
- Remote: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts