{"schemaVersion":3,"id":"CVE-2024-46993","aliases":["GHSA-6r2x-8pq8-9489"],"status":"published","duplicateOf":null,"title":null,"description":"Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. In versions prior to 28.3.2, 29.3.3, and 30.0.3, the nativeImage.createFromPath() and nativeImage.createFromBuffer() functions call a function downstream that is vulnerable to a heap buffer overflow. An Electron program that uses either of the affected functions is vulnerable to a buffer overflow if an attacker is in control of the image's height, width, and contents. This issue has been patched in versions  28.3.2, 29.3.3, and 30.0.3. There are no workarounds for this issue.","dates":{"published":"2025-07-01T01:55:51.242Z","modified":"2025-07-02T13:25:00.677Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.4,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":4.4,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":7.3,"severity":"high","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":4.4,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00156,"percentile":0.0437,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.026000000000000002,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0013},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00156,"percentile":0.0437}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00146,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00156,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00156,"percentile":0.0437}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"}],"affected":[{"vendor":"electron","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 28.3.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 29.0.0-alpha.1, < 29.3.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 30.0.0-alpha.1, < 30.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 28.3.2 | ≥ 29.0.0-alpha.1, < 29.3.3 | ≥ 30.0.0-alpha.1, < 30.0.3","eol":null,"hubHref":"/vendor/electron/electron"},{"vendor":"Npm","product":"electron","name":"electron","label":"electron","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/electron","purlType":"npm","versions":[{"text":"< 28.3.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 29.0.0-alpha.1, < 29.3.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 30.0.0-alpha.1, < 30.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 28.3.2 | ≥ 29.0.0-alpha.1, < 29.3.3 | ≥ 30.0.0-alpha.1, < 30.0.3","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-6r2x-8pq8-9489","label":"github.com/electron/electron/security/advisories/GHSA-6r2x-8pq8-9489","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46993","label":"nvd.nist.gov/vuln/detail/CVE-2024-46993","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/electron/electron","label":"github.com/electron/electron","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-07-01T01:55:51.242Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-07-02T13:25:00.677Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T11:32:02.556Z","stale":false,"partial":false}}