GitHub Advisory Database
GHSA-6r2x-8pq8-9489
Electron vulnerable to Heap Buffer Overflow in NativeImage
Details
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]).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | electron | All versions before 28.3.2 (fixed in 28.3.2) |
| npm | electron | From 29.0.0-alpha.1 before 29.3.3 (fixed in 29.3.3) |
| npm | electron | From 30.0.0-alpha.1 before 30.0.3 (fixed in 30.0.3) |