CVE-2017-12581: Electron - Command Injection
- Cve: CVE-2017-12581
- Name: Electron - Command Injection
- Description: GitHub Electron before 1.6.8 allows remote command execution because of a nodeIntegration bypass vulnerability. This also affects all applications that bundle Electron code equivalent to 1.6.8 or earlier. Bypassing the Same Origin Policy (SOP) is a precondition; however, recent Electron versions do not have strict SOP enforcement. Combining an SOP bypass with a privileged URL internally used by Electron, it was possible to execute native Node.js primitives in order to run OS commands on the user's host. Specifically, a chrome-devtools://devtools/bundled/inspector.html window could be used to eval a Node.js child_process.execFile API call.
- Impact: Attackers can execute arbitrary OS commands on the user's host, leading to full system compromise.
- Remediation: Update to Electron version 1.6.8 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs access to chrome-devtools window and SOP bypass
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.06693
- Epss percentile: 0.94072
- Assignee: [email protected]
- Published at: 2017-08-06T02:29:00Z
- Age in days: 3397
- Modified at: 2026-06-17T01:03:32Z
- Public exploits total: 2
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2017-12581
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://blog.doyensec.com/2017/08/03/electron-framework-security.html | nvd | 2017-08-06 |
| https://doyensec.com/resources/us-17-Carettoni-Electronegativity-A-Study-Of-Electron-Security.pdf | nvd | 2017-08-06 |
References
| Url | Source | Tags |
|---|---|---|
| https://blog.doyensec.com/2017/08/03/electron-framework-security.html | nvd | Exploit, Technical Description, Third Party Advisory |
| https://doyensec.com/resources/us-17-Carettoni-Electronegativity-A-Study-Of-Electron-Security.pdf | nvd | Exploit, Technical Description, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| electron:electron | <= 1.6.7 | no | nvd | /v1/products/electron/electron |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| electron/electron | commit, package | yes | /v1/repositories/electron/electron |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2017-08-06
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts