CVE-2017-12581: electron OS Command Injection
Vulnerability summary
CVE-2017-12581 is a high (CVSS 9.3) OS Command Injection vulnerability in electron. EPSS estimates a 6.69% chance of exploitation in the next 30 days, higher than 93.8% of scored vulnerabilities. 2 public exploits are recorded.
Timeline
- 06-08-2017PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · NpmEcosystem advisory · calculated8.1HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
6.69%
Chance of exploitation in the next 30 days
Percentile
94%
Versus all other CVEs
30-day change
0.00 pp
From 6.69% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundExploit Reference (doyensec.com)
Maturity: unknown
Exploit Reference (blog.doyensec.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Electron1 product
- electron≤ 1.6.7
Npm1 product
- electron< 1.6.8
2 vendors · 2 products
References
5 links- doyensec.com/resources/us-17-Carettoni-Electronegativity-A-Study-Of-Electron-Security.pdfX Refsource MISCExploitTechnical DescriptionThird Party AdvisoryWEB
- blog.doyensec.com/2017/08/03/electron-framework-security.htmlX Refsource MISCExploitTechnical DescriptionThird Party AdvisoryWEB
- github.com/electron/electronPACKAGE