Intel

AIKIDO-2025-10437

electron is vulnerable to Heap-based Buffer Overflow

Heap-based Buffer OverflowCVE-2024-46993 Published Jul 7, 2025

40

Medium Risk

This Affects:

JSelectron
28.0.0 - 28.3.1
Fixed in 28.3.2
29.0.0 - 29.3.2
Fixed in 29.3.3
30.0.0 - 30.0.2
Fixed in 30.0.3
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

electron is vulnerable to Heap-based Buffer Overflow in versions 28.0.0 - 28.3.1, 29.0.0 - 29.3.2 and 30.0.0 - 30.0.2.

How to fix this

Upgrade the electron library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform