CVE-2024-52011: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in vitejs launch-editor
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.
AI Analysis
Technical Summary
CVE-2024-52011 is a command injection vulnerability (CWE-77) in the vitejs launch-editor package. The issue arises from improper neutralization of special elements in the 'file' argument passed to the launchEditor function, enabling arbitrary command execution on Windows platforms. Versions of launch-editor prior to 2.9.0 are affected. The vulnerability has been addressed in launch-editor 2.9.0, which corresponds to vite version 5.4.9. The CVSS 4.0 base score is 7.5, indicating high severity. No known exploits in the wild have been reported. The vendor advisory from Red Hat confirms the issue and the availability of a fix.
Potential Impact
An attacker can execute arbitrary commands on Windows systems by exploiting the insufficient sanitization of the file argument in launch-editor versions before 2.9.0. This could lead to unauthorized code execution with potential high impact on confidentiality, integrity, and availability of affected systems.
Mitigation Recommendations
Upgrade launch-editor to version 2.9.0 or later, which contains the fix for this command injection vulnerability. This corresponds to vite version 5.4.9 or later. No other mitigations are specified by the vendor advisory. Patch status is confirmed fixed in version 2.9.0.
CVE-2024-52011: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in vitejs launch-editor
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.
CVSS v4.0
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-52011 is a command injection vulnerability (CWE-77) in the vitejs launch-editor package. The issue arises from improper neutralization of special elements in the 'file' argument passed to the launchEditor function, enabling arbitrary command execution on Windows platforms. Versions of launch-editor prior to 2.9.0 are affected. The vulnerability has been addressed in launch-editor 2.9.0, which corresponds to vite version 5.4.9. The CVSS 4.0 base score is 7.5, indicating high severity. No known exploits in the wild have been reported. The vendor advisory from Red Hat confirms the issue and the availability of a fix.
Potential Impact
An attacker can execute arbitrary commands on Windows systems by exploiting the insufficient sanitization of the file argument in launch-editor versions before 2.9.0. This could lead to unauthorized code execution with potential high impact on confidentiality, integrity, and availability of affected systems.
Mitigation Recommendations
Upgrade launch-editor to version 2.9.0 or later, which contains the fix for this command injection vulnerability. This corresponds to vite version 5.4.9 or later. No other mitigations are specified by the vendor advisory. Patch status is confirmed fixed in version 2.9.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2024-11-04T17:46:16.779Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2024-52011","vendor":"Red Hat"}]
Threat ID: 6a1de300e29bf47b503a4daf
Added to database: 06/01/2026, 19:52:32 UTC
Last enriched: 07/15/2026, 13:40:45 UTC
Last updated: 07/31/2026, 19:22:52 UTC
Views: 142
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.