Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps that are launched as command line executables are impacted. Specifically this issue can only be exploited if the following conditions are met: 1. The app is launched with an attacker-controlled working directory and 2. The attacker has the ability to write files to that working directory. This makes the risk quite low, in fact normally issues of this kind are considered outside of our threat model as similar to Chromium we exclude Physically Local Attacks but given the ability for this issue to bypass certain protections like ASAR Integrity it is being treated with higher importance. This issue has been fixed in versions:26.0.0-beta.13
, 25.4.1
, 24.7.1
, 23.3.13
, and 22.3.19
. There are no app side workarounds, users must update to a patched version of Electron.
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Electron | Electronjs | * | 22.3.9 (excluding) |
Electron | Electronjs | 23.0.0 (including) | 23.3.13 (excluding) |
Electron | Electronjs | 24.0.0 (including) | 24.7.1 (excluding) |
Electron | Electronjs | 25.0.0 (including) | 25.5.0 (excluding) |
Electron | Electronjs | 26.0.0-alpha1 (including) | 26.0.0-alpha1 (including) |
Electron | Electronjs | 26.0.0-alpha2 (including) | 26.0.0-alpha2 (including) |
Electron | Electronjs | 26.0.0-alpha3 (including) | 26.0.0-alpha3 (including) |
Electron | Electronjs | 26.0.0-alpha4 (including) | 26.0.0-alpha4 (including) |
Electron | Electronjs | 26.0.0-alpha5 (including) | 26.0.0-alpha5 (including) |
Electron | Electronjs | 26.0.0-alpha6 (including) | 26.0.0-alpha6 (including) |
Electron | Electronjs | 26.0.0-alpha7 (including) | 26.0.0-alpha7 (including) |
Electron | Electronjs | 26.0.0-alpha8 (including) | 26.0.0-alpha8 (including) |
Electron | Electronjs | 26.0.0-beta1 (including) | 26.0.0-beta1 (including) |
Electron | Electronjs | 26.0.0-beta10 (including) | 26.0.0-beta10 (including) |
Electron | Electronjs | 26.0.0-beta11 (including) | 26.0.0-beta11 (including) |
Electron | Electronjs | 26.0.0-beta12 (including) | 26.0.0-beta12 (including) |
Electron | Electronjs | 26.0.0-beta2 (including) | 26.0.0-beta2 (including) |
Electron | Electronjs | 26.0.0-beta3 (including) | 26.0.0-beta3 (including) |
Electron | Electronjs | 26.0.0-beta4 (including) | 26.0.0-beta4 (including) |
Electron | Electronjs | 26.0.0-beta5 (including) | 26.0.0-beta5 (including) |
Electron | Electronjs | 26.0.0-beta6 (including) | 26.0.0-beta6 (including) |
Electron | Electronjs | 26.0.0-beta7 (including) | 26.0.0-beta7 (including) |
Electron | Electronjs | 26.0.0-beta8 (including) | 26.0.0-beta8 (including) |
Electron | Electronjs | 26.0.0-beta9 (including) | 26.0.0-beta9 (including) |
When a product allows a user’s input to contain code syntax, it might be possible for an attacker to craft the code in such a way that it will alter the intended control flow of the product. Such an alteration could lead to arbitrary code execution. Injection problems encompass a wide variety of issues – all mitigated in very different ways. For this reason, the most effective way to discuss these weaknesses is to note the distinct features which classify them as injection weaknesses. The most important issue to note is that all injection problems share one thing in common – i.e., they allow for the injection of control plane data into the user-controlled data plane. This means that the execution of the process may be altered by sending code in through legitimate data channels, using no other mechanism. While buffer overflows, and many other flaws, involve the use of some further issue to gain execution, injection problems need only for the data to be parsed. The most classic instantiations of this category of weakness are SQL injection and format string vulnerabilities.