Skip to content

ASAR Integrity bypass via filetype confusion in electron

Moderate severity GitHub Reviewed Published Dec 1, 2023 in electron/electron • Updated Sep 18, 2024

Package

npm electron (npm)

Affected versions

< 22.3.24
>= 24.0.0-alpha.1, < 24.8.3
>= 25.0.0-alpha.1, < 25.8.1
>= 26.0.0-alpha.1, < 26.2.1
>= 27.0.0-alpha.1, < 27.0.0-alpha.7
>= 23.0.0-alpha.1, <= 23.3.13

Patched versions

22.3.24
24.8.3
25.8.1
26.2.1
27.0.0-alpha.7

Description

Impact

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 macOS as these fuses are only currently supported on macOS.

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 resources folder in your app installation on Windows 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

  • 27.0.0-alpha.7
  • 26.2.1
  • 25.8.1
  • 24.8.3
  • 22.3.24

For more information

If you have any questions or comments about this advisory, email us at [email protected]

References

@MarshallOfSound MarshallOfSound published to electron/electron Dec 1, 2023
Published to the GitHub Advisory Database Dec 1, 2023
Reviewed Dec 1, 2023
Published by the National Vulnerability Database Dec 1, 2023
Last updated Sep 18, 2024

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L

EPSS score

0.050%
(21st percentile)

Weaknesses

CVE ID

CVE-2023-44402

GHSA ID

GHSA-7m48-wc93-9g85

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.