CVE-2018-15685 Electron webPreferences vulnerability can be used to perform remote code execution

High 8.1 Published Updated

Attackers can achieve remote code execution in Electron apps using IFRAMEs when nativeWindowOpen or sandbox options are enabled.

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-15685?

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

Official description

GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and "nativeWindowOpen: true" or "sandbox: true" options, is affected by a WebPreferences vulnerability that can be leveraged to perform remote code execution.

Weakness: CWE-1188

Which versions are affected by CVE-2018-15685?

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

PackageAffectedFixed in
electron npmFrom 1.7.01.7.16
electron npmFrom 1.7.01.7.16
electron npmFrom 1.8.01.8.8
electron npmFrom 1.8.01.8.8
electron npmFrom 2.0.02.0.8
electron npmFrom 2.0.02.0.8
2 more packages
electron npmFrom 3.0.0-beta.13.0.0-beta.7
electron npmFrom 3.0.0-beta.13.0.0-beta.7

Products include Electronjs Electron.

How do I fix CVE-2018-15685?

Upgrade electron to a fixed version for your release line: 1.7.16, 1.8.8, 2.0.8 or 3.0.0-beta.7.

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

Is CVE-2018-15685 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-15685 exists.

Public exploit code: 1 Exploit-DB entry.

All Electronjs Electron vulnerabilities

Sources

Also known as GHSA-hv9c-qwqg-qj3v.

Is CVE-2018-15685 in your software?

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

Check your SBOMs for free