CVE-2024-46993: Electron vulnerable to Heap Buffer Overflow in NativeImage
Impact 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. Workaround There are no app-side workarounds for this issue.
Published Jun 30, 2025 · Updated Jul 1, 2025
Affected packages
electron
- Ecosystem
- npm
- Affected
- < 28.3.2
- Fixed in
- 28.3.2
- Check
npm ls electron
electron
- Ecosystem
- npm
- Affected
- >= 29.0.0-alpha.1, < 29.3.3
- Fixed in
- 29.3.3
- Check
npm ls electron
electron
- Ecosystem
- npm
- Affected
- >= 30.0.0-alpha.1, < 30.0.3
- Fixed in
- 30.0.3
- Check
npm ls electron
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
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.
Workaround
There are no app-side workarounds for this issue. You must update your Electron version to be protected.
Patches
v28.3.2v29.3.3v30.0.3
For More Information
If you have any questions or comments about this advisory, email us at [[email protected]](mailto:[email protected]).
Credited to francobel.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-115570
Electron: Mitigation for compromised eMudhra intermediate certificates
high7.4Oct 23, 2026CVE-2026-113796
Electron: SameSite cookie restrictions are not applied to windows opened from links
medium4.2Oct 22, 2026CVE-2026-113797
Electron: Extension tabs.query returns tab URLs and titles without the tabs permission
low3.1Oct 22, 2026CVE-2026-113798
Electron: Pointer lock permission requests can be attributed to the wrong frame
medium5.4Oct 22, 2026CVE-2026-114121
Electron: openExternal permission requests can be attributed to the wrong origin
medium5.4Oct 22, 2026CVE-2026-114122
Electron: Frame subscription trusts GPU-supplied frame geometry
low3.9Oct 22, 2026
