CVE-2021-39184 (GCVE-0-2021-39184)
Vulnerability from cvelistv5 – Published: 2021-10-12 19:05 – Updated: 2024-08-04 01:58- CWE-668 - Exposure of Resource to Wrong Sphere
| URL | Tags |
|---|---|
| https://github.com/electron/electron/security/adv… | x_refsource_CONFIRM |
| https://github.com/electron/electron/pull/30728 | x_refsource_MISC |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-04T01:58:18.275Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4"
},
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/electron/electron/pull/30728"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "electron",
"vendor": "electron",
"versions": [
{
"status": "affected",
"version": "\u003c 11.5.0"
},
{
"status": "affected",
"version": "\u003e= 12.0.0, \u003c 12.1.0"
},
{
"status": "affected",
"version": "\u003e= 13.0.0, \u003c 13.3.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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\u0027s 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\u0027s app. One may also disable the functionality of the `createThumbnailFromPath` API if one does not need it."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.8,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-668",
"description": "CWE-668: Exposure of Resource to Wrong Sphere",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2021-10-12T19:05:11.000Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4"
},
{
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/electron/electron/pull/30728"
}
],
"source": {
"advisory": "GHSA-mpjm-v997-c4h4",
"discovery": "UNKNOWN"
},
"title": "Sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API",
"x_legacyV4Record": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2021-39184",
"STATE": "PUBLIC",
"TITLE": "Sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "electron",
"version": {
"version_data": [
{
"version_value": "\u003c 11.5.0"
},
{
"version_value": "\u003e= 12.0.0, \u003c 12.1.0"
},
{
"version_value": "\u003e= 13.0.0, \u003c 13.3.0"
}
]
}
}
]
},
"vendor_name": "electron"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "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\u0027s 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\u0027s app. One may also disable the functionality of the `createThumbnailFromPath` API if one does not need it."
}
]
},
"impact": {
"cvss": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.8,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N",
"version": "3.1"
}
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "CWE-668: Exposure of Resource to Wrong Sphere"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4",
"refsource": "CONFIRM",
"url": "https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4"
},
{
"name": "https://github.com/electron/electron/pull/30728",
"refsource": "MISC",
"url": "https://github.com/electron/electron/pull/30728"
}
]
},
"source": {
"advisory": "GHSA-mpjm-v997-c4h4",
"discovery": "UNKNOWN"
}
}
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2021-39184",
"datePublished": "2021-10-12T19:05:11.000Z",
"dateReserved": "2021-08-16T00:00:00.000Z",
"dateUpdated": "2024-08-04T01:58:18.275Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2021-39184",
"date": "2026-11-27",
"epss": "0.0105",
"percentile": "0.63686"
},
"nvd": {
"cve": {
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*",
"matchCriteriaId": "7ED24D03-59B2-4E91-B807-7BD1B09D8389",
"versionEndExcluding": "11.5.0",
"versionStartIncluding": "10.1.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*",
"matchCriteriaId": "3DE5DF76-68D8-4E5F-8916-6F3F7140E7EE",
"versionEndExcluding": "12.1.0",
"versionStartIncluding": "12.0.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*",
"matchCriteriaId": "56BC24C9-C297-4D02-8601-B8F37449350B",
"versionEndExcluding": "13.3.0",
"versionStartIncluding": "13.0.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta1:*:*:*:*:*:*",
"matchCriteriaId": "3152223A-E182-45F8-87EC-264B2DDD4B10",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta10:*:*:*:*:*:*",
"matchCriteriaId": "D2007F6E-ECCB-4A7B-A4B6-24104A8D8AB6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta11:*:*:*:*:*:*",
"matchCriteriaId": "7134F6E7-427F-4187-B94B-1B1C1B1FE73B",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta12:*:*:*:*:*:*",
"matchCriteriaId": "82F84AAE-AD55-4565-9D41-DCAFCAA5D0AD",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta13:*:*:*:*:*:*",
"matchCriteriaId": "D63A3C29-E6F0-41A3-838F-F7BFA893CF7C",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta14:*:*:*:*:*:*",
"matchCriteriaId": "4DD814A9-5A50-49EF-9053-B36B127D7AAB",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta15:*:*:*:*:*:*",
"matchCriteriaId": "E0B813DB-A89D-48AD-A3F0-3D68AB7A087F",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta16:*:*:*:*:*:*",
"matchCriteriaId": "C192B552-BE06-480C-86A7-59CC2291EB27",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta17:*:*:*:*:*:*",
"matchCriteriaId": "CFDC76F2-A8CA-4063-A8DA-F63C04D70760",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta18:*:*:*:*:*:*",
"matchCriteriaId": "98A43F4A-ED19-47D4-B4F9-7BC769E2F7F3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta19:*:*:*:*:*:*",
"matchCriteriaId": "DDB7F3FF-CDFF-4E23-B2D1-EF0AC8C75D10",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta2:*:*:*:*:*:*",
"matchCriteriaId": "430C057D-8574-44DB-B8A4-8ECD9BBA6B48",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta20:*:*:*:*:*:*",
"matchCriteriaId": "2CF66D1F-77B6-4A5E-AD93-921FF2FC3309",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta21:*:*:*:*:*:*",
"matchCriteriaId": "871B25E4-F705-491D-842E-3D79B9351DAD",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta22:*:*:*:*:*:*",
"matchCriteriaId": "2A59303D-7105-44E5-A91F-CBEF2F672F7A",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta23:*:*:*:*:*:*",
"matchCriteriaId": "B2E8CF66-C123-4A63-BE8D-90321FF8A348",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta24:*:*:*:*:*:*",
"matchCriteriaId": "FEE680F3-CB4A-4298-A4B1-FDDE6BAB0896",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta25:*:*:*:*:*:*",
"matchCriteriaId": "65DE71FB-0390-4D80-982E-D8709CD73573",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta3:*:*:*:*:*:*",
"matchCriteriaId": "0CF035B4-FEF5-4D53-B975-CAF66ACA1860",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta4:*:*:*:*:*:*",
"matchCriteriaId": "88607FE5-5E91-4CD9-831A-2C353779BA1A",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta5:*:*:*:*:*:*",
"matchCriteriaId": "DAE6B51E-F47B-48F5-8249-C958E85AE708",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta6:*:*:*:*:*:*",
"matchCriteriaId": "65B43BEC-8941-4587-A7AA-000456568E40",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta7:*:*:*:*:*:*",
"matchCriteriaId": "69CBF166-FF15-4E1C-83C1-207C1F67A7E7",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta8:*:*:*:*:*:*",
"matchCriteriaId": "0817340D-82C9-4D79-9FF3-36F13260542D",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:14.0.0:beta9:*:*:*:*:*:*",
"matchCriteriaId": "F20755C8-D323-4CF8-ACA0-199081610342",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:15.0.0:alpha1:*:*:*:*:*:*",
"matchCriteriaId": "FD9A6155-8B6B-4C1B-80CB-A26779559AAF",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:15.0.0:alpha2:*:*:*:*:*:*",
"matchCriteriaId": "F84883AD-A2C0-4075-BDB7-AAB8307DC099",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:15.0.0:alpha3:*:*:*:*:*:*",
"matchCriteriaId": "028E4C03-4A98-4311-8A19-825035C8EB14",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:15.0.0:alpha4:*:*:*:*:*:*",
"matchCriteriaId": "78FAAB9C-73D0-4DBC-B78F-293D75FDFC1C",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:15.0.0:alpha5:*:*:*:*:*:*",
"matchCriteriaId": "9709716E-896F-430E-9C5F-F898B46256E3",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:15.0.0:alpha6:*:*:*:*:*:*",
"matchCriteriaId": "669329B9-EA55-4FEC-8543-A8FA1C0733BA",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:15.0.0:alpha7:*:*:*:*:*:*",
"matchCriteriaId": "99904BC0-56A9-405C-A4C3-BCE30B840DB7",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:15.0.0:alpha8:*:*:*:*:*:*",
"matchCriteriaId": "755AE879-ACB3-450A-85B4-095E93CCF77A",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:electronjs:electron:15.0.0:alpha9:*:*:*:*:*:*",
"matchCriteriaId": "37428807-70D6-496C-82A0-2084F2BC2D51",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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\u0027s 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\u0027s app. One may also disable the functionality of the `createThumbnailFromPath` API if one does not need it."
},
{
"lang": "es",
"value": "Electron es un framework para escribir aplicaciones de escritorio multiplataforma usando JavaScript, HTML y CSS. Una vulnerabilidad en las versiones anteriores a 11.5.0, 12.1.0 y 13.3.0, permite que un renderizador en sandbox requiera una imagen \"thumbnail\" de un archivo arbitrario en el sistema del usuario. La miniatura puede incluir potencialmente partes significativas del archivo original, incluyendo datos textuales en muchos casos. Las versiones 15.0.0-alpha.10, 14.0.0, 13.3.0, 12.1.0 y 11.5.0, contienen una correcci\u00f3n de la vulnerabilidad. Se presentan dos soluciones disponibles aparte de la actualizaci\u00f3n. Uno puede hacer que la vulnerabilidad sea significativamente m\u00e1s dif\u00edcil de explotar para un atacante al habilitar \"contextIsolation\" en la propia aplicaci\u00f3n. Tambi\u00e9n es posible deshabilitar la funcionalidad de la API \"createThumbnailFromPath\" si no es necesaria"
}
],
"id": "CVE-2021-39184",
"lastModified": "2024-11-21T06:18:49.693",
"metrics": {
"cvssMetricV2": [
{
"acInsufInfo": false,
"baseSeverity": "MEDIUM",
"cvssData": {
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "NONE",
"baseScore": 5.0,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "NONE",
"vectorString": "AV:N/AC:L/Au:N/C:P/I:N/A:N",
"version": "2.0"
},
"exploitabilityScore": 10.0,
"impactScore": 2.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"source": "nvd@nist.gov",
"type": "Primary",
"userInteractionRequired": false
}
],
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.8,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.2,
"impactScore": 4.0,
"source": "security-advisories@github.com",
"type": "Secondary"
},
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 8.6,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 4.0,
"source": "nvd@nist.gov",
"type": "Primary"
}
]
},
"published": "2021-10-12T19:15:07.987",
"references": [
{
"source": "security-advisories@github.com",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/electron/electron/pull/30728"
},
{
"source": "security-advisories@github.com",
"tags": [
"Mitigation",
"Third Party Advisory"
],
"url": "https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/electron/electron/pull/30728"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Mitigation",
"Third Party Advisory"
],
"url": "https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4"
}
],
"sourceIdentifier": "security-advisories@github.com",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-668"
}
],
"source": "security-advisories@github.com",
"type": "Secondary"
},
{
"description": [
{
"lang": "en",
"value": "CWE-862"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
}
]
}
},
"redhat_vex": {
"current_release_date": "2026-03-27T13:39:47+00:00",
"cve": "CVE-2021-39184",
"id": "CVE-2021-39184",
"initial_release_date": "2021-01-01T00:00:00+00:00",
"product_status:known_not_affected": "1",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "Sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-39184.json",
"version": "3"
}
}
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.