cve.bz

CVE-2024-46993 electron electron: Heap-based Buffer Overflow

4.4 mediumEPSS 0.2%Fix available

Medium (4.4) in electron electron. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in electron 28.3.2, 29.3.3, 30.0.3.

On this page
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.

Severity

CVSS 4.0

4.4 medium
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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-07-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • electron (npm): fixed in 28.3.2, 29.3.3, 30.0.3

Ask an AI about this CVE

Show the promptExplain CVE-2024-46993 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-46993?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-46993?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-46993 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6r2x-8pq8-9489npmelectron<28.3.228.3.2
GHSA-6r2x-8pq8-9489npmelectron>=29.0.0-alpha.1 <29.3.329.3.3
GHSA-6r2x-8pq8-9489npmelectron>=30.0.0-alpha.1 <30.0.330.0.3

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON