Skip to content

CVE-2024-46993 Electron Vulnerable to Heap Buffer Overflow in NativeImage::CreateFromPath

MediumCVSS 4.4 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm electron(npm) < 28.3.2; >= 29.0.0-alpha.1, < 29.3.3; >= 30.0.0-alpha.1, < 30.0.3 28.3.2, 29.3.3, 30.0.3 Fixed
electron = < 28.3.2; = >= 29.0.0-alpha.1, < 29.3.3; = >= 30.0.0-alpha.1, < 30.0.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm electron(npm) < 28.3.2 28.3.2
npm electron(npm) >= 29.0.0-alpha.1, < 29.3.3 29.3.3
npm electron(npm) >= 30.0.0-alpha.1, < 30.0.3 30.0.3
electron = < 28.3.2 No fix listed
electron = >= 29.0.0-alpha.1, < 29.3.3 No fix listed
electron = >= 30.0.0-alpha.1, < 30.0.3 No fix listed

References