CVE Vulnerabilities

CVE-2023-23623

Always-Incorrect Control Flow Implementation

Published: Sep 06, 2023 | Modified: Sep 11, 2023
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. A Content-Security-Policy that disables eval, specifically setting a script-src directive and not providing unsafe-eval in that directive, is not respected in renderers that have sandbox disabled. i.e. sandbox: false in the webPreferences object. This allows usage of methods like eval() and new Function unexpectedly which can result in an expanded attack surface. This issue only ever affected the 22 and 23 major versions of Electron and has been fixed in the latest versions of those release lines. Specifically, these versions contain the fixes: 22.0.1 and 23.0.0-alpha.2 We recommend all apps upgrade to the latest stable version of Electron. If upgrading isnt possible, this issue can be addressed without upgrading by enabling sandbox: true on all renderers.

Weakness

The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.

Affected Software

Name Vendor Start Version End Version
Electron Electronjs 22.0.0 (including) 22.0.0 (including)
Electron Electronjs 22.0.0-beta1 (including) 22.0.0-beta1 (including)
Electron Electronjs 22.0.0-beta2 (including) 22.0.0-beta2 (including)
Electron Electronjs 22.0.0-beta3 (including) 22.0.0-beta3 (including)
Electron Electronjs 22.0.0-beta4 (including) 22.0.0-beta4 (including)
Electron Electronjs 22.0.0-beta5 (including) 22.0.0-beta5 (including)
Electron Electronjs 22.0.0-beta6 (including) 22.0.0-beta6 (including)
Electron Electronjs 22.0.0-beta7 (including) 22.0.0-beta7 (including)
Electron Electronjs 22.0.0-beta8 (including) 22.0.0-beta8 (including)
Electron Electronjs 23.0.0-alpha1 (including) 23.0.0-alpha1 (including)

References