# CVE-2024-46993: Electron Vulnerable to Heap Buffer Overflow in NativeImage::CreateFromPath

- Severity: Medium 4.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-06-30T18:41:08.000Z
- Modified: 2026-06-17T07:56:19.817Z
- Also known as: GHSA-6r2x-8pq8-9489
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- electron electron: < 28.3.2; >= 29.0.0-alpha.1, < 29.3.3; >= 30.0.0-alpha.1, < 30.0.3
- electron (npm): before 28.3.2; from 29.0.0-alpha.1 before 29.3.3; from 30.0.0-alpha.1 before 30.0.3

## Every score

- GitHub_M: CVSS:4.0 4.4 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/electron/electron/security/advisories/GHSA-6r2x-8pq8-9489> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-46993> (advisory)
- <https://github.com/electron/electron> (package)

## Sources

- CVE List: [CVE-2024-46993](https://www.cve.org/CVERecord?id=CVE-2024-46993), CVE Terms of Use, modified 2025-07-02
- GitHub Advisory Database: [GHSA-6r2x-8pq8-9489](https://github.com/advisories/GHSA-6r2x-8pq8-9489), CC-BY-4.0, modified 2025-07-01
- NVD: [CVE-2024-46993](https://nvd.nist.gov/vuln/detail/CVE-2024-46993), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46993 · Whole record: https://cve.day/CVE-2024-46993.json · Rebuilt by cve.day 2026-11-25T22:58:52.793Z
