CVE-2024-52011
launch-editor: vite: launch-editor: Arbitrary command execution via insufficient file argument sanitization
Overview
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.
Source: OX vulnerability database
Severity
8.3 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
Weakness: CWE-77, CWE-88
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | launch-editor | <2.9.0 | 2.9.0 |
| npm | vite | <5.4.9 | 5.4.9 |
| Seal npm | @seal-security/vite | >=4.4.11-sp1, <4.4.11-sp999>=5.3.5-sp1, <5.3.5-sp999 | 4.4.11-sp9995.3.5-sp999 |
| Seal npm | vite | >=4.4.11-sp0, <4.4.11-sp999>=5.3.5-sp0, <5.3.5-sp999 | 4.4.11-sp9995.3.5-sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 12 fixes
chainguard 1 release · 12 packages
| Release | Package | Fixed in |
|---|---|---|
| gitlab-rails-ce-fips-18-10 | 18.10.8-r8 | |
| gitlab-rails-ce-fips-18-11 | 18.11.12-r2 | |
| gitlab-rails-ce-18-11 | 18.11.13-r0 | |
| gitlab-rails-ce-fips-18-9 | 18.9.8-r8 | |
| gitlab-rails-ce-19-0 | 19.0.10-r0 | |
| gitlab-rails-ce-fips-19-0 | 19.0.9-r3 |
6 more rows
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:34342
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-52011
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2483853
- github.com https://github.com/vitejs/launch-editor
- github.com https://github.com/vitejs/launch-editor/commit/971291e8a6a91226e1616c5c0ec85423d2d50a5e
- github.com https://github.com/vitejs/launch-editor/security/advisories/GHSA-c27g-q93r-2cwf
- github.com https://github.com/yyx990803/launch-editor/security/advisories/GHSA-c27g-q93r-2cwf
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-52011
- security.access.redhat.com https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-52011.json
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-52011
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.