CVE-2024-46993

Medium

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.

SeverityMedium
CVSS4.4
Exploit probability5. percentile0.2%
ProductElectron
PublishedJul 1, 2025
First seenJul 1, 2025
Weakness typeCWE-122CWE-122

How to fix

Update
  • electron28.3.2, 29.3.3, 30.0.3 or later

Affected products

ProductAffected versionsFixed in
electronnpmv < 28.3.2, 29.0.0-alpha.1 ≤ v < 29.3.3, 30.0.0-alpha.1 ≤ v < 30.0.328.3.2, 29.3.3, 30.0.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.