7.5

CVE-2024-39698: electron-userland electron-builder

CVSS: 7.5v3.1HighModified
AliasesGHSA-9jxc-qjr9-vjxq
Published 09-07-2024Last modified 02-08-2024

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 35.4% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
0.43%
0%100%
Low · +0.09 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 09-07-2024
    PublishedVulnerability first disclosed.
  2. 02-08-2024
    Last 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

EPSS trend

Probability

0.43%

Chance of exploitation in the next 30 days

Percentile

35%

Versus all other CVEs

30-day change

+0.09 pp

From 0.34% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.43%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Electron Builder

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

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
Npm1 product
  • electron-updater< 6.3.0-alpha.6

3 vendors · 3 products

References

6 links