GHSA-7fv9-m79r-j9x8

    Dashboard / Vulnerabilities / GHSA-7fv9-m79r-j9x8

    GHSA-7fv9-m79r-j9x8

    Published: 17 May 2022Last Modified: 8 Nov 2023

    Summary: Electron vulnerable to remote command execution

    Details: 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.

    Affected packages

    Package

    Name: electron

    Purl: pkg:npm/electron

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.6.8

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-7fv9-m79r-j9x8 | CVE-DB