Electron ASAR Integrity bypass by just modifying the content
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| electron | electron | 30.0.0-alpha.1 to before 30.0.5; 31.0.0-alpha.1 to before 31.0.0-beta.1 | 30.0.5, 31.0.0-beta.1 | Patch available | CNA |
| — | electron (npm) | 30.0.0-alpha.1 to before 30.0.5 | 30.0.5 | Patch available | GHSA-xw5q-g62x-2qjc |
| — | electron (npm) | 31.0.0-alpha.1 to before 31.0.0-beta.1 | 31.0.0-beta.1 | Patch available | GHSA-xw5q-g62x-2qjc |
- electron Vendorelectron Affected 30.0.0-alpha.1 to before 30.0.5; 31.0.0-alpha.1 to before 31.0.0-beta.1 Fixed in 30.0.5, 31.0.0-beta.1 Patch available CNA
- electron (npm) Vendor— Affected 30.0.0-alpha.1 to before 30.0.5 Fixed in 30.0.5 Patch available GHSA-xw5q-g62x-2qjc
- electron (npm) Vendor— Affected 31.0.0-alpha.1 to before 31.0.0-beta.1 Fixed in 31.0.0-beta.1 Patch available GHSA-xw5q-g62x-2qjc
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:* | — | — | Electronjs |
- cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:* Versions — — ·Electronjs
Remediation
- Fix · CNA electron (electron) Fixed in 30.0.5, 31.0.0-beta.1
- Fix · GHSA-xw5q-g62x-2qjc electron (npm) Fixed in 30.0.5 Advisory →
- Fix · GHSA-xw5q-g62x-2qjc electron (npm) Fixed in 31.0.0-beta.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-46992
- 2026-10-03 Alias added: GHSA-xw5q-g62x-2qjc
References
More electron vulnerabilities
- 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
Sources
- CVE-2024-46992 · CVE Program
- CVE-2024-46992 · NVD
- FIRST EPSS
- GHSA-xw5q-g62x-2qjc · GitHub Advisory Database · CC BY 4.0
- CVE-2024-46992 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences