MediumGHSA-6r2x-8pq8-9489CVE-2024-46993

Electron vulnerable to Heap Buffer Overflow in NativeImage

Published 30 Jun 2025 · Updated 1 Jul 2025

Affected packages

Affected
<28.3.2
Fixed in
28.3.2
Update to the fixed version for your release line, for example:npm install electron@28.3.2
Affected
>=29.0.0-alpha.1 <29.3.3
Fixed in
29.3.3
Update to the fixed version for your release line, for example:npm install electron@29.3.3
Affected
>=30.0.0-alpha.1 <30.0.3
Fixed in
30.0.3
Update to the fixed version for your release line, for example:npm install electron@30.0.3

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.2
  • v29.3.3
  • v30.0.3

For More Information

If you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org).

Is GHSA-6r2x-8pq8-9489 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected electron, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.