Live threats

All CVEs / Electron

CVE-2024-39698Electron-builder

High 7.5 No auth needed

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
Weakness (CWE)
CWE-154, CWE-295
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Electron-builder.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
electronelectron-builder< 6.3.0
electronelectron-builder6.3.0
electronelectron-builder6.3.0
electronelectron-builder6.3.0
electronelectron-builder6.3.0
electronelectron-builder6.3.0
electronelectron-builder6.3.0

Official sources

References

Links published by the sources. Open them with care.