Vulnerability · Published Jul 1, 2025 · Assigned by GitHub_M

CVE-2024-46992Electron ASAR Integrity bypass by just modifying the content

High 7.8

In plain English

A high-severity security flaw in electron from electron. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.1%top 98.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From versions 30.0.0-alpha.1 to before 30.0.5 and 31.0.0-alpha.1 to before 31.0.0-beta.1, Electron is vulnerable to an ASAR Integrity bypass. This only impacts apps that have the embeddedAsarIntegrityValidation and onlyLoadAppFromAsar fuses enabled. Apps without these fuses enabled are not impacted. This issue is specific to Windows, apps using these fuses on macOS are not impacted. Specifically this issue can only be exploited if the app is launched from a filesystem the attacker has write access too. i.e. the ability to edit files inside the .app bundle on macOS which these fuses are supposed to protect against. This issue has been patched in versions 30.0.5 and 31.0.0-beta.1. There are no workarounds for this issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmelectron30.0.5GHSA-xw5q-g62x-2qjc
npmelectron31.0.0-beta.1GHSA-xw5q-g62x-2qjc

Affected products (as reported)

VendorProductVersions
electron electron >= 30.0.0-alpha.1, < 30.0.5>= 31.0.0-alpha.1, < 31.0.0-beta.1

Weakness: CWE-354 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References