launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| vitejs | launch-editor | affected |
|
||||||||||||||||||
| vitejs | vite | affected |
|
||||||||||||||||||
| vitejs | vite-plus | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Vitejs | Launch-editor |
|
||||||||||||||||||||||||
| Vitejs | Vite |
|
||||||||||||||||||||||||
| Vitejs | Vite-plus |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-r825-w8mm-5pxw | launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.705% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Vitejs
Vitejs launch-editor Vitejs vite Vitejs vite-plus |
|
| Vendors & Products |
Vitejs
Vitejs launch-editor Vitejs vite Vitejs vite-plus |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, when an attacker can create a filesystem entry beginning with plus or minus in the working directory, an affected editor is selected, and the path can remain relative or is converted to a relative WSL path, launchEditor forwards the path without forcing it to be interpreted as a positional filename. Editor option parsing then treats the attacker-controlled filename as a command-line flag, which can cause unintended file overwrite or arbitrary command execution by the selected editor. The affected editors are Vim and gVim, MacVim, Emacs and Emacsclient, and Notepad++ when a plugin exposes dangerous operations; WSL path conversion keeps Vite and newer middleware callers exposed. This issue is fixed in version 2.14.2. | |
| Title | launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors | |
| Weaknesses | CWE-88 | |
| References |
| |
| Metrics |
cvssV4_0
|