Read the docs
TI-2024-31381 Aliases CVE-2024-46993GHSA-6r2x-8pq8-9489

Electron Vulnerable to Heap Buffer Overflow in NativeImage::CreateFromPath

Priority LOW 22CWE-122Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
High
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-122 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0016 5th percentileScored 2026-11-07
Fix Fixed electron (electron): 28.3.2, 29.3.3, 30.0.3electron (npm): 28.3.2, 29.3.3, 30.0.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
electronelectronbefore 28.3.2; 29.0.0-alpha.1 to before 29.3.3; 30.0.0-alpha.1 to before 30.0.328.3.2, 29.3.3, 30.0.3Patch availableCNA
—electron (npm)before 28.3.228.3.2Patch availableGHSA-6r2x-8pq8-9489
—electron (npm)29.0.0-alpha.1 to before 29.3.329.3.3Patch availableGHSA-6r2x-8pq8-9489
—electron (npm)30.0.0-alpha.1 to before 30.0.330.0.3Patch availableGHSA-6r2x-8pq8-9489
  • electron Vendorelectron Affected before 28.3.2; 29.0.0-alpha.1 to before 29.3.3; 30.0.0-alpha.1 to before 30.0.3 Fixed in 28.3.2, 29.3.3, 30.0.3 Patch available CNA
  • electron (npm) Vendor— Affected before 28.3.2 Fixed in 28.3.2 Patch available GHSA-6r2x-8pq8-9489
  • electron (npm) Vendor— Affected 29.0.0-alpha.1 to before 29.3.3 Fixed in 29.3.3 Patch available GHSA-6r2x-8pq8-9489
  • electron (npm) Vendor— Affected 30.0.0-alpha.1 to before 30.0.3 Fixed in 30.0.3 Patch available GHSA-6r2x-8pq8-9489

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*——Electronjs
  • cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:* Versions — — ·Electronjs

Remediation

  • Fix · CNA electron (electron) Fixed in 28.3.2, 29.3.3, 30.0.3
  • Fix · GHSA-6r2x-8pq8-9489 electron (npm) Fixed in 28.3.2 Advisory →
  • Fix · GHSA-6r2x-8pq8-9489 electron (npm) Fixed in 29.3.3 Advisory →
  • Fix · GHSA-6r2x-8pq8-9489 electron (npm) Fixed in 30.0.3 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-46993
  2. 2026-10-03 Alias added: GHSA-6r2x-8pq8-9489

References

  • TI-2026-39496 Information disclosure in electron-builder CVSS 4.0HIGH 8.2
  • TI-2024-26621 Code Signing Bypass on Windows in electron-updater < 6.3.0-alpha.6 CVSS 3.1HIGH 7.5
  • TI-2023-09452 Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled in Electron CVSS 3.1CRITICAL 9.8
  • TI-2026-39157 Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow CVSS 4.0CRITICAL 9.3
  • TI-2017-09308 GitHub Electron before 1.6.8 allows remote command execution because of a nodeIntegration… CVSS 3.0HIGH 8.1
  • TI-2022-11788 Exposure of Resource to Wrong Sphere in Electron CVSS 3.1CRITICAL 9.8
See all 74 →

Sources