CVE-2018-1000136 Electron Vulnerable to Code Execution by Re-Enabling Node.js Integration

High 8.1 Published Updated

Attackers can achieve remote code execution in Electron apps with specific webview and node integration configurations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-1000136?

CVE-2018-1000136 is a high-severity code injection vulnerability in Electronjs Electron, published on 23 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Electron version 1.7 up to 1.7.12; 1.8 up to 1.8.3 and 2.0.0 up to 2.0.0-beta.3 contains an improper handling of values vulnerability in Webviews that can result in remote code execution. This attack appear to be exploitable via an app which allows execution of 3rd party code AND disallows node integration AND has not specified if webview is enabled/disabled. This vulnerability appears to have been fixed in 1.7.13, 1.8.4, 2.0.0-beta.4.

Weakness: CWE-20

Which versions are affected by CVE-2018-1000136?

6 open source packages ship an affected version, including electron. It affects 1 product.

PackageAffectedFixed in
electron npmFrom 1.7.01.7.13
electron npmFrom 1.7.01.7.13
electron npmFrom 1.8.01.8.4
electron npmFrom 1.8.01.8.4
electron npmFrom 2.0.0-beta.12.0.0-beta.5
electron npmFrom 2.0.0-beta.12.0.0-beta.5

Products include Electronjs Electron.

How do I fix CVE-2018-1000136?

Upgrade electron to a fixed version for your release line: 1.7.13, 1.8.4 or 2.0.0-beta.5.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-1000136 being exploited?

There is no known exploitation of CVE-2018-1000136 in the wild and no public exploit code.

All Electronjs Electron vulnerabilities

Sources

Also known as GHSA-8xwg-wv7v-4vqp.

Is CVE-2018-1000136 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free