All reports
High

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

Affected versions

Affected versions
<= 2.8.2
Fixed version
2.9.0
Affected versions
<= 5.4.8
Fixed version
5.4.9

Exploitation

CVE-2024-52011

Probability of exploitation in the next 30 days: 0.51%

FIRST EPSS · 2026-11-18

Description

Summary

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.

Impact

If the following conditions are met, an attacker can execute arbitrary commands on the computer that is using the launch-editor:

  • An attacker can place a file with the malicious filename

  • An attacker can call the launchEditor method with the file argument controlled

  • The launch-editor package is running on Windows

For example, some development server using this package satisfy these conditions, as a malicious website might be able to force the downloading of a file and the path of that file is predictable.

Patch

This issue has been fixed in the launch-editor version 2.9.0 (commit).

Links

Credits

  • Ry0taK