VDB
KO
MEDIUM 6.1

GHSA-vmqv-hx8q-j7mg

Electron has ASAR Integrity Bypass via resource modification

Details

### 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.

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 * `38.0.0-beta.6` * `37.3.1` * `36.8.1` * `35.7.5`

### For more information If you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / electron
Introduced in: 0 Fixed in: 35.7.5
Fix npm install electron@35.7.5
npm / electron
Introduced in: 36.0.0-alpha.1 Fixed in: 36.8.1
Fix npm install electron@36.8.1
npm / electron
Introduced in: 37.0.0-alpha.1 Fixed in: 37.3.1
Fix npm install electron@37.3.1
npm / electron
Introduced in: 38.0.0-alpha.1 Fixed in: 38.0.0-beta.6
Fix npm install electron@38.0.0-beta.6

References