Sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API (electron electron)
At a glance
- Source
- NVD
- EPSS
- EPSS 1.05 % Β· percentile 64 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Modified
Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. A vulnerability in versions prior to 11.5.0, 12.1.0, and 13.3.0 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. Versions 15.0.0-alpha.10, 14.0.0, 13.3.0, 12.1.0, and 11.5.0 all contain a fix for the vulnerability. Two workarounds aside from upgrading are available. One may make the vulnerability significantly more difficult for an attacker to exploit by enabling `contextIsolation` in one's app. One may also disable the functionality of the `createThumbnailFromPath` API if one does not need it.
Weaknesses (CWE)
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N | NVD Β· security-advisories@github.com (Secondary) |
| CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N | NVD Β· nvd@nist.gov (Primary) |
| CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N | NVD Β· nvd@nist.gov (Primary) |
Advisories
- GHSA-mpjm-v997-c4h4 β Electron's sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API
European references
- ENISA EUVD Β· EUVD-2021-2232
- GCVE Β· GCVE-0-2021-39184
Affected configurations (NVD CPE)
cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*β₯ 10.1.0 < 11.5.0cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*β₯ 12.0.0 < 12.1.0cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*β₯ 13.0.0 < 13.3.0cpe:2.3:a:electronjs:electron:14.0.0:beta1:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta10:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta11:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta12:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta13:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta14:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta15:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta16:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta17:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta18:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta19:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta2:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta20:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta21:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta22:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta23:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta24:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta25:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta3:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta4:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta5:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta6:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta7:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta8:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:14.0.0:beta9:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:15.0.0:alpha1:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:15.0.0:alpha2:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:15.0.0:alpha3:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:15.0.0:alpha4:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:15.0.0:alpha5:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:15.0.0:alpha6:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:15.0.0:alpha7:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:15.0.0:alpha8:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:15.0.0:alpha9:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| electron Β· electron | affected < 11.5.0 ; affected >= 12.0.0, < 12.1.0 ; affected >= 13.0.0, < 13.3.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |