CVE-2024-46993
Electron Vulnerable to Heap Buffer Overflow in NativeImage::CreateFromPath
Also known as GHSA-6r2x-8pq8-9489
Mitigation
- Upgrade electron to one of 28.3.2, 29.3.3, 30.0.3 (or later in the same release line).
Who should check
- Projects that depend on npm package electron (< 28.3.2)
- Anyone running electron < 28.3.2; >= 29.0.0-alpha.1, < 29.3.3; >= 30.0.0-alpha.1, < 30.0.3
Vulnerability facts
- Affected
- electron < 28.3.2
- Fixed in
- 28.3.2, 29.3.3, 30.0.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.4 (v4.0, CNA)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:UOpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- Exploit maturity: Unreported
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-122
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-46993. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-46993.md Affected: electron < 28.3.2 Fixed in: 28.3.2, 29.3.3, 30.0.3 Steps: 1. Search this machine and project for electron (npm), electron: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2024-46993 being exploited?
There is no confirmed exploitation: CVE-2024-46993 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-46993?
Medium: CVSS 4.4 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-46993?
electron < 28.3.2.
Is there a fix for CVE-2024-46993?
Yes. Fixed in 28.3.2, 29.3.3, 30.0.3. Upgrade electron to one of 28.3.2, 29.3.3, 30.0.3 (or later in the same release line).
How do I check if I'm affected by CVE-2024-46993?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.