{"id":"CVE-2021-39184","published":"2021-10-12T19:05:11Z","modified":"2024-08-04T01:58:18Z","title":"Sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API","vendor":"electron","product":"electron","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0105,"percentile":0.63627,"provenance":"source"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/electron/electron/pull/30728","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":12.73},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":["< 11.5.0",">= 12.0.0, < 12.1.0",">= 13.0.0, < 13.3.0"]}],"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<11.5.0",">=12.0.0, <12.1.0",">=13.0.0, <13.3.0"],"patched":["11.5.0","12.1.0","13.3.0"],"from":["GHSA-mpjm-v997-c4h4"],"provenance":"source"}],"summary":{"text":"Electron, the cross-platform desktop application framework, contains a flaw in its nativeImage API, specifically the createThumbnailFromPath functionality, in versions prior to 11.5.0, 12.1.0 and 13.3.0. An attacker who can run code inside a sandboxed renderer over the network, with no authentication or user interaction required, but with a high-complexity attack, can obtain a thumbnail of an arbitrary file on the user's system, which may reveal significant parts of that file, often including its text.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:40:21Z"},"euvd":{"id":"EUVD-2021-2232","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15174","published":"2020-10-06","fixed":"10.0.1","kev":false},{"cve":"CVE-2020-15215","published":"2020-10-06","fixed":"11.0.0-beta.6","kev":false},{"cve":"CVE-2020-26272","published":"2021-01-28","fixed":"11.1.0","kev":false,"link":{"from":"CVE-2020-26272","to":"CVE-2021-39184","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"11.1.0","toFixed":"11.5.0","daysApart":257}]}},{"cve":"CVE-2021-39184","published":"2021-10-12","fixed":"13.3.0","kev":false},{"cve":"CVE-2022-21718","published":"2022-03-22","fixed":"17.0.0-alpha.6","kev":false,"link":{"from":"CVE-2021-39184","to":"CVE-2022-21718","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"13.3.0","toFixed":"13.6.6","daysApart":161}]}},{"cve":"CVE-2022-29247","published":"2022-06-13","fixed":"18.0.0-beta.6","kev":false},{"cve":"CVE-2022-29257","published":"2022-06-13","fixed":"18.0.0-beta.6","kev":false}],"package":"npm:electron"}}