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.

Severity (CVSS 4.0)4.4Medium
Exploit odds (30 days)0.2%top 94.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmelectron28.3.2GHSA-6r2x-8pq8-9489
npmelectron29.3.3GHSA-6r2x-8pq8-9489
npmelectron30.0.3GHSA-6r2x-8pq8-9489

Affected products (as reported)

VendorProductVersions
electron electron < 28.3.2>= 29.0.0-alpha.1, < 29.3.3>= 30.0.0-alpha.1, < 30.0.3

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