Skip to main content
← All vulnerabilities
CVE-2024-52011GHSA-C27G-Q93R-2CWF

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.9.0, 5.4.9
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • vitejs launch-editor

    fixed in 2.9.0

  • vitejs vite

    fixed in 5.4.9

  • launch-editornpm

    fixed in 2.9.0

  • vitenpm

    fixed in 5.4.9

References 3

GitHub · vitejs/launch-editor

GitHub · HORKimhab/CVE-2024-52011