CVE-2024-39698
Electron-Updater Windows Executable Code Signature Forgery Vulnerability
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.
INFO
Published Date :
July 9, 2024, 6:15 p.m.
Last Modified :
Nov. 21, 2024, 9:28 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
1.6
Affected Products
The following products are affected by CVE-2024-39698
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-39698
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-39698
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-39698
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/electron-userland/electron-builder/blob/140e2f0eb0df79c2a46e35024e96d0563355fc89/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L35-L41 Added Reference https://github.com/electron-userland/electron-builder/commit/ac2e6a25aa491c1ef5167a552c19fc2085cd427f Added Reference https://github.com/electron-userland/electron-builder/pull/8295 Added Reference https://github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxq -
Initial Analysis by [email protected]
Jul. 12, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/electron-userland/electron-builder/blob/140e2f0eb0df79c2a46e35024e96d0563355fc89/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L35-L41 No Types Assigned https://github.com/electron-userland/electron-builder/blob/140e2f0eb0df79c2a46e35024e96d0563355fc89/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L35-L41 Product Changed Reference Type https://github.com/electron-userland/electron-builder/commit/ac2e6a25aa491c1ef5167a552c19fc2085cd427f No Types Assigned https://github.com/electron-userland/electron-builder/commit/ac2e6a25aa491c1ef5167a552c19fc2085cd427f Patch Changed Reference Type https://github.com/electron-userland/electron-builder/pull/8295 No Types Assigned https://github.com/electron-userland/electron-builder/pull/8295 Issue Tracking, Patch Changed Reference Type https://github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxq No Types Assigned https://github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxq Exploit, Vendor Advisory Added CWE NIST CWE-295 Added CPE Configuration OR *cpe:2.3:a:electron:electron-builder:*:*:*:*:*:node.js:*:* versions up to (excluding) 6.3.0 *cpe:2.3:a:electron:electron-builder:6.3.0:alpha0:*:*:*:node.js:*:* *cpe:2.3:a:electron:electron-builder:6.3.0:alpha1:*:*:*:node.js:*:* *cpe:2.3:a:electron:electron-builder:6.3.0:alpha2:*:*:*:node.js:*:* *cpe:2.3:a:electron:electron-builder:6.3.0:alpha3:*:*:*:node.js:*:* *cpe:2.3:a:electron:electron-builder:6.3.0:alpha4:*:*:*:node.js:*:* *cpe:2.3:a:electron:electron-builder:6.3.0:alpha5:*:*:*:node.js:*:* -
CVE Received by [email protected]
Jul. 09, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxq [No types assigned] Added Reference GitHub, Inc. https://github.com/electron-userland/electron-builder/pull/8295 [No types assigned] Added Reference GitHub, Inc. https://github.com/electron-userland/electron-builder/commit/ac2e6a25aa491c1ef5167a552c19fc2085cd427f [No types assigned] Added Reference GitHub, Inc. https://github.com/electron-userland/electron-builder/blob/140e2f0eb0df79c2a46e35024e96d0563355fc89/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L35-L41 [No types assigned] Added CWE GitHub, Inc. CWE-154 Added CVSS V3.1 GitHub, Inc. AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-39698
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-39698
weaknesses.