PT-2021-7285 · Electron · Electron

Marshallofsound

·

Published

2021-10-12

·

Updated

2022-08-05

·

CVE-2021-39184

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:C/I:N/A:N
Name of the Vulnerable Software and Affected Versions Electron versions prior to 11.5.0 Electron versions prior to 12.1.0 Electron versions prior to 13.3.0
Description A vulnerability in Electron allows a sandboxed renderer to request a "thumbnail" image of an arbitrary file on the user's system. The thumbnail can potentially include significant parts of the original file, including textual data in many cases. This issue is related to the createThumbnailFromPath API and can lead to the disclosure of protected information.
Recommendations For versions prior to 11.5.0, consider upgrading to version 11.5.0 or later. For versions prior to 12.1.0, consider upgrading to version 12.1.0 or later. For versions prior to 13.3.0, consider upgrading to version 13.3.0 or later. As a temporary workaround, consider enabling contextIsolation in your app to make the vulnerability significantly more difficult for an attacker to exploit. If your app does not depend on the createThumbnailFromPath API, consider disabling the functionality by deleting require('electron').nativeImage.createThumbnailFromPath in the main process before the 'ready' event.

Fix

Missing Authorization

Exposure of Resource to Wrong Sphere

Weakness Enumeration

Related Identifiers

BDU:2022-05149
CVE-2021-39184
GHSA-MPJM-V997-C4H4

Affected Products

Electron