CVE-2024-46992: Electron Electron ASAR Integrity Bypass By Vulnerability

HIGH
Advisory Identifier: GHSA-xw5q-g62x-2qjc
CVSS 7.8
CWE-354
Published
Advisory Summary

CVE-2024-46992 is a HIGH (CVSS 7.8) electron asar integrity bypass by vulnerability (CWE-354: Improper Validation of Integrity Check Value) affecting Electron libraries in the npm ecosystem. The issue involves electron asar integrity bypass by just modifying the content. Remediation is available by upgrading affected packages to version 30.0.5, 31.0.0-beta.1.

CVE-2024-46992 at a Glance

CVE Identifier CVE-2024-46992
GHSA Identifier GHSA-xw5q-g62x-2qjc
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-354: Improper Validation of Integrity Check Value
Affected Product Electron
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-46992

To remediate this vulnerability, upgrade all affected Electron dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

electron fixed: 30.0.5
npm install electron@30.0.5
electron fixed: 31.0.0-beta.1
npm install electron@31.0.0-beta.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls electron

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-46992, inspect your project dependencies using npm:

npm ls electron

Analyze the terminal output to locate any version of Electron in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 30.0.5), your application is affected.

Note: The npm ls electron command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-354: Improper Validation of Integrity Check Value, where the product does not validate or incorrectly validates the integrity check values or "checksums" of a message. this may prevent it from detecting if the data has been modified or corrupted in transmission. In Electron, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

electron's ASAR Integrity can be bypass by modifying the content. ### Impact This only impacts apps that have the `embeddedAsarIntegrityValidation` and `onlyLoadAppFromAsar` [fuses](https://www.electronjs.org/docs/latest/tutorial/fuses) enabled. Apps without these fuses enabled are not impacted. This issue is specific to Windows, apps using these fuses on macOS are unimpacted. Specifically this issue can only be exploited if your 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. ### Workarounds There are no app side workarounds, you must update to a patched version of Electron. ### Fixed Versions * `30.0.5` * `31.0.0-beta.1` ### For more information If you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)

CVE-2024-46992 Affected Electron Versions

2 component(s)
Fixed Versions:
30.0.531.0.0-beta.1
Product / Package Ecosystem Affected Versions Fixed Version
electron
npm
≥ 30.0.0-alpha.1
< 30.0.5
30.0.5
electron
npm
≥ 31.0.0-alpha.1
< 31.0.0-beta.1
31.0.0-beta.1

References

Frequently Asked Questions

What is CVE-2024-46992?
CVE-2024-46992 is a security vulnerability in Electron involving electron ASAR Integrity bypass by just modifying the content under CWE-354: Improper Validation of Integrity Check Value.
Which Electron versions are affected?
Affected versions include releases prior to 30.0.5, 31.0.0-beta.1 across affected packages: electron.
What version fixes CVE-2024-46992?
Upgrading to 30.0.5, 31.0.0-beta.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is electron affected?
Yes, electron is affected in releases prior to 30.0.5, 31.0.0-beta.1. Upgrade your dependency to 30.0.5, 31.0.0-beta.1 or later.
What is the CVSS score of CVE-2024-46992?
CVE-2024-46992 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-46992?
CVE-2024-46992 is classified under CWE-354: Improper Validation of Integrity Check Value (The product does not validate or incorrectly validates the integrity check values or "checksums" of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission.).
How can I check npm dependencies for CVE-2024-46992?
Run the dependency tree command: 'npm ls electron'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xw5q-g62x-2qjc",
  "modified" : "2025-07-01T13:13:18Z",
  "published" : "2025-06-30T17:54:11Z",
  "aliases" : [ "CVE-2024-46992" ],
  "summary" : "electron ASAR Integrity bypass by just modifying the content",
  "details" : "electron's ASAR Integrity can be bypass by modifying the content.\n\n### Impact\nThis only impacts apps that have the `embeddedAsarIntegrityValidation` and `onlyLoadAppFromAsar` [fuses](https://www.electronjs.org/docs/latest/tutorial/fuses) enabled. Apps without these fuses enabled are not impacted. This issue is specific to Windows, apps using these fuses on macOS are unimpacted.\n\nSpecifically this issue can only be exploited if your 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.\n\n### Workarounds\nThere are no app side workarounds, you must update to a patched version of Electron.\n\n### Fixed Versions\n* `30.0.5`\n* `31.0.0-beta.1`\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "30.0.0-alpha.1"
      }, {
        "fixed" : "30.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "31.0.0-alpha.1"
      }, {
        "fixed" : "31.0.0-beta.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/security/advisories/GHSA-xw5q-g62x-2qjc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-46992"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/electron/electron"
  }, {
    "type" : "WEB",
    "url" : "https://www.electronjs.org/docs/latest/tutorial/fuses"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-354" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-30T17:54:11Z",
    "nvd_published_at" : "2025-07-01T02:15:20Z"
  }
}