Vulnerability record · CVE-2018-1000006 · published 24 January 2018
CVE-2018-1000006: Electron protocol handler allows arbitrary command execution on Windows
Atom · Electron
Electron apps on Windows (10, 7, 2008) that register custom protocol handlers can be tricked into executing arbitrary commands when a user clicks a specially crafted URL. The flaw is an OS command injection in the protocol handler, fixed in 1.8.2-beta.4, 1.7.11 and 1.6.16. It matters because any Electron-based desktop app with a registered protocol is exposed to remote code execution through a single user click.
Description
GitHub Electron versions 1.8.2-beta.3 and earlier, 1.7.10 and earlier, 1.6.15 and earlier has a vulnerability in the protocol handler, specifically Electron apps running on Windows 10, 7 or 2008 that register custom protocol handlers can be tricked in arbitrary command execution if the user clicks on a specially crafted URL. This has been fixed in versions 1.8.2-beta.4, 1.7.11, and 1.6.16.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Automated analysis
high priorityRemote code execution with high CVSS (8.8), very high EPSS and public exploit code, though it requires user interaction and is not in KEV.
What it is
Electron apps on Windows (10, 7, 2008) that register custom protocol handlers can be tricked into executing arbitrary commands when a user clicks a specially crafted URL. The flaw is an OS command injection in the protocol handler, fixed in 1.8.2-beta.4, 1.7.11 and 1.6.16. It matters because any Electron-based desktop app with a registered protocol is exposed to remote code execution through a single user click.
Impact
An attacker who gets a victim to click a crafted URL gains arbitrary command execution in the context of the Electron application, with high impact to confidentiality, integrity and availability.
Attack surface
Reached over the network via a crafted URL that triggers the app's registered custom protocol handler; no authentication is required but user interaction (a click) is required per the CVSS vector UI:R.
Exploitation
Not listed in CISA KEV, but EPSS is 0.845 (99.7th percentile) and public exploit code exists on Exploit-DB, indicating active interest and practical exploitability.
What to do
- Upgrade Electron to 1.8.2-beta.4, 1.7.11, 1.6.16 or later, and rebuild/release affected applications.
- Audit which custom protocol handlers your Electron apps register and remove or restrict any that are not strictly needed.
- Validate and sanitize all input passed from protocol handler URLs before it reaches command execution paths.
- Warn users not to click unsolicited protocol links and consider blocking unknown protocol launches at the OS level.
Detection
- Monitor process creation events for Electron app processes spawning unexpected child processes such as cmd.exe or powershell.exe.
- Log and review invocations of registered custom protocol handlers, especially those originating from email, chat or browser links.
- Alert on command lines containing shell metacharacters passed through protocol handler arguments.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://www.securityfocus.com/bid/102796 | Third Party AdvisoryVDB Entry |
| https://electronjs.org/blog/protocol-handler-fix | MitigationThird Party Advisory |
| https://github.com/electron/electron/releases/tag/v1.8.2-beta.4 | PatchThird Party Advisory |
| https://medium.com/%40Wflki/exploiting-electron-rce-in-exodus-wallet-d9e6db13c374 | |
| https://www.exploit-db.com/exploits/43899/ | ExploitThird Party AdvisoryVDB Entry |
| https://www.exploit-db.com/exploits/44357/ | |
| http://www.securityfocus.com/bid/102796 | Third Party AdvisoryVDB Entry |
| https://electronjs.org/blog/protocol-handler-fix | MitigationThird Party Advisory |
| https://github.com/electron/electron/releases/tag/v1.8.2-beta.4 | PatchThird Party Advisory |
| https://medium.com/%40Wflki/exploiting-electron-rce-in-exodus-wallet-d9e6db13c374 | |
| https://www.exploit-db.com/exploits/43899/ | ExploitThird Party AdvisoryVDB Entry |
| https://www.exploit-db.com/exploits/44357/ |
Track CVE-2018-1000006 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2018-1000006), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.