CVE-2024-52011

launch-editor vulnerable to command injection via the crafted request on Windows

State
Published
Severity
7.5 High
Published
Jun 1, 2026
Updated
Sep 4, 2026
Reserved
Nov 4, 2024

Read the record on cve.org

Description

launch-editor allows users to open files with line numbers in editor from Node.js. Prior to version 2.9.0, due to the insufficient sanitization of the `file` argument in the `launchEditor`, an attacker can execute arbitrary commands on Windows by supplying a filename that contains special characters. This issue has been fixed in the `launch-editor` version 2.9.0, corresponding to vite version 5.4.9.

Scores

CVSSScoreVectorSource
4.07.5 HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NGitHub_M
3.18.3 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:Lredhat-SADP

Weaknesses

  • CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Affected Products

ProductVersions
launch-editorvitejs
  • < 2.9.0Affected
vitevitejs
  • < 5.4.9Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.