CVE-2023-44402 ASAR Integrity bypass via filetype confusion in electron

Medium 6.1 Published Updated

Attackers can bypass ASAR integrity checks on macOS if specific fuses are enabled and they have write access to the app bundle.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-44402?

CVE-2023-44402 is a medium-severity vulnerability in Electronjs Electron, published on 1 Dec 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. 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 `.app` bundle on macOS which these fuses are supposed to protect against. There are no app side workarounds, you must update to a patched version of Electron.

Weakness: CWE-345

Which versions are affected by CVE-2023-44402?

12 open source packages ship an affected version, including electron. It affects 1 product.

PackageAffectedFixed in
electron npmAll versions22.3.24
electron npmAll versions22.3.24
electron npmFrom 23.0.0-alpha.1 to 23.3.13None
electron npmFrom 23.0.0-alpha.1 to 23.3.13None
electron npmFrom 24.0.0-alpha.124.8.3
electron npmFrom 24.0.0-alpha.124.8.3
6 more packages
electron npmFrom 25.0.0-alpha.125.8.1
electron npmFrom 25.0.0-alpha.125.8.1
electron npmFrom 26.0.0-alpha.126.2.1
electron npmFrom 26.0.0-alpha.126.2.1
electron npmFrom 27.0.0-alpha.127.0.0-alpha.7
electron npmFrom 27.0.0-alpha.127.0.0-alpha.7

Products include Electronjs Electron.

How do I fix CVE-2023-44402?

Upgrade electron to a fixed version for your release line: 22.3.24, 24.8.3, 25.8.1 or 26.2.1.

Is CVE-2023-44402 being exploited?

There is no known exploitation of CVE-2023-44402 in the wild and no public exploit code.

All Electronjs Electron vulnerabilities

Sources

Also known as GHSA-7m48-wc93-9g85.

Is CVE-2023-44402 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free