{"id":"EUVD-2024-2310","enisaUuid":"5202813c-b5e6-35ab-90f6-f0fa400bf8ee","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.","datePublished":"Jul 9, 2024, 5:50:28 PM","dateUpdated":"Aug 2, 2024, 4:26:15 AM","baseScore":7.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","references":"https://github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxq\nhttps://github.com/electron-userland/electron-builder/pull/8295\nhttps://github.com/electron-userland/electron-builder/commit/ac2e6a25aa491c1ef5167a552c19fc2085cd427f\nhttps://github.com/electron-userland/electron-builder/blob/140e2f0eb0df79c2a46e35024e96d0563355fc89/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L35-L41\n","aliases":"CVE-2024-39698\nGHSA-9jxc-qjr9-vjxq\n","assigner":"GitHub_M","epss":0.43,"enisaIdProduct":[{"id":"7880a4ce-8437-366c-a2ab-f95e76b186c0","product":{"name":"electron-builder","vendor":{"name":"electron-userland"}},"product_version":"\u003c 6.3.0-alpha.6"}],"enisaIdVendor":[{"id":"cff28ff8-4ea0-3d38-a211-ce7fe42bc8ff","vendor":{"name":"electron-userland"}}],"enisaIdVulnerability":[{"id":"68d46fae-a9e2-3c49-a891-7d7aa0a16075","vulnerability":{"id":"CVE-2024-39698","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.","datePublished":"Jul 9, 2024, 5:50:28 PM","dateUpdated":"Aug 2, 2024, 4:26:15 AM","status":"PUBLISHED","baseScore":7.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","references":"https://github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxq\nhttps://github.com/electron-userland/electron-builder/pull/8295\nhttps://github.com/electron-userland/electron-builder/commit/ac2e6a25aa491c1ef5167a552c19fc2085cd427f\nhttps://github.com/electron-userland/electron-builder/blob/140e2f0eb0df79c2a46e35024e96d0563355fc89/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L35-L41\n","enisa_id":"EUVD-2024-2310\n","assigner":"GitHub_M","epss":0.43,"dataProcessed":"Nov 12, 2026, 7:19:01 AM","vulnerabilityProduct":[{"id":"bfbb455d-75b3-48f4-8d64-1cdf8f759bf5","product":{"name":"electron-builder","vendor":{"name":"electron-userland"}},"product_version":"\u003c 6.3.0-alpha.6"},{"id":"cd2f585a-9c4c-3523-ba9f-1e48a2de85be","product":{"name":"electron-builder","vendor":{"name":"electron-userland"}},"product_version":"\u003c 6.3.0-alpha.6"}],"vulnerabilityVendor":[{"id":"2bf678bd-223f-32cf-956c-01650d553524","vendor":{"name":"electron-userland"}}]}},{"id":"abf35a5e-92ed-3f10-9d2f-e6034956fe72","vulnerability":{"id":"GHSA-9jxc-qjr9-vjxq","description":"electron-updater Code Signing Bypass on Windows","datePublished":"Jul 9, 2024, 5:48:21 PM","dateUpdated":"Jul 12, 2024, 7:20:30 PM","baseScore":null,"references":"https://github.com/electron-userland/electron-builder/security/advisories/GHSA-9jxc-qjr9-vjxq\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-39698\nhttps://github.com/electron-userland/electron-builder/pull/8295\nhttps://github.com/electron-userland/electron-builder/commit/ac2e6a25aa491c1ef5167a552c19fc2085cd427f\nhttps://github.com/electron-userland/electron-builder\nhttps://github.com/electron-userland/electron-builder/blob/140e2f0eb0df79c2a46e35024e96d0563355fc89/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L35-L41\n","enisa_id":"EUVD-2024-2310\n","aliases":"GHSA-9jxc-qjr9-vjxq\nCVE-2024-39698\n","epss":0.0,"dataProcessed":"Nov 9, 2026, 3:35:47 PM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}