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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.4
- **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:U`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-122
- **Aliases:** GHSA-6r2x-8pq8-9489
- **Published:** 2025-06-30T18:41:08.000Z
- **Modified:** 2026-06-17T07:56:19.817Z

## 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

## 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

- npm `electron`: affected \< 28.3.2; fixed 28.3.2, 29.3.3, 30.0.3 (osv)
- electron: \< 28.3.2; \>= 29.0.0-alpha.1, \< 29.3.3; \>= 30.0.0-alpha.1, \< 30.0.3 (cvelist)

## Mitigation

- Upgrade electron to one of 28.3.2, 29.3.3, 30.0.3 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/electron/electron/security/advisories/GHSA-6r2x-8pq8-9489>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-46993>
- other: <https://github.com/electron/electron>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-46993>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6r2x-8pq8-9489> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-46993> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-46993>
