CVE-2024-52011 PUBLISHED

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

Assigner: GitHub_M
Reserved: 04.11.2024 Published: 01.06.2026 Updated: 02.06.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 7.5

Product Status

Vendor vitejs
Product launch-editor
Versions
  • Version < 2.9.0 is affected
Vendor vitejs
Product vite
Versions
  • Version < 5.4.9 is affected

References

Problem Types

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