Vulnerability · Published Jul 1, 2025 · Assigned by GitHub_M
CVE-2024-46993Electron Vulnerable to Heap Buffer Overflow in NativeImage::CreateFromPath
Medium 4.4
In plain English
A medium-severity heap buffer overflow in electron from electron. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | electron | 28.3.2 | GHSA-6r2x-8pq8-9489 |
| npm | electron | 29.3.3 | GHSA-6r2x-8pq8-9489 |
| npm | electron | 30.0.3 | GHSA-6r2x-8pq8-9489 |
Affected products (as reported)
Weakness: CWE-122 · 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
References
- https://github.com/electron/electron/security/advisories/GHSA-6r2x-8pq8-9489 x_refsource_CONFIRM