CVE-2024-46993

Electron Vulnerable to Heap Buffer Overflow in NativeImage::CreateFromPath

State
Published
Severity
4.4 Medium
Published
Jul 1, 2025
Updated
Jul 2, 2025
Reserved
Sep 16, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.04.4 MediumCVSS: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:UGitHub_M

Weaknesses

Affected Products

ProductVersions
electronelectron
  • < 28.3.2Affected
  • >= 29.0.0-alpha.1, < 29.3.3Affected
  • >= 30.0.0-alpha.1, < 30.0.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.