Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electron
  4. ›
  5. CVE-2024-46993

CVE-2024-46993: Electron vulnerable to Heap Buffer Overflow in NativeImage

June 30, 2025 (updated November 10, 2025)

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.

References

  • github.com/advisories/GHSA-6r2x-8pq8-9489
  • github.com/electron/electron
  • github.com/electron/electron/security/advisories/GHSA-6r2x-8pq8-9489
  • nvd.nist.gov/vuln/detail/CVE-2024-46993

Code Behaviors & Features

Detect and mitigate CVE-2024-46993 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 28.3.2, all versions starting from 29.0.0-alpha.1 before 29.3.3, all versions starting from 30.0.0-alpha.1 before 30.0.3

Fixed versions

  • 28.3.2
  • 29.3.3
  • 30.0.3

Solution

Upgrade to versions 28.3.2, 29.3.3, 30.0.3 or above.

Impact 7 HIGH

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-122: Heap-based Buffer Overflow

Source file

npm/electron/CVE-2024-46993.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:17 +0000.