launch-editor
Affected
- introduced
0, fixed2.9.0(semver)
Fixed versions
2.9.0
Fix
- Fixed version
2.9.0npm install [email protected]
Advisory
Also known as: CVE-2024-52011
launch-editor vulnerable to command injection via the crafted request on Windows
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:
launchEditor method with the file argument controlledlaunch-editor package is running on WindowsFor 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).
High Basis: The source's own band: HIGH
0, fixed 2.9.0 (semver)2.9.0
2.9.0npm install [email protected]0, fixed 5.4.9 (semver)5.4.9
5.4.9npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0