{"id":"CVE-2024-52011","aliases":["GHSA-c27g-q93r-2cwf"],"url":"https://o3.security/vulnerability/CVE-2024-52011","summary":"launch-editor vulnerable to command injection via the crafted request on Windows","details":"### Summary\nDue 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.\n\n### Impact\nIf the following conditions are met, an attacker can execute arbitrary commands on the computer that is using the `launch-editor`:\n\n- An attacker can place a file with the malicious filename\n- An attacker can call the `launchEditor` method with the `file` argument controlled\n- The `launch-editor` package is running on Windows\n\nFor 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.\n\n### Patch\nThis issue has been fixed in the `launch-editor` version 2.9.0 ([commit](https://github.com/vitejs/launch-editor/commit/971291e8a6a91226e1616c5c0ec85423d2d50a5e)).","published":"2026-06-01T17:17:43.792Z","modified":"2026-09-06T03:30:20.452870053Z","cvss":null,"epss":{"score":0.00514,"percentile":0.41447,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"launch-editor","fixedVersion":"2.9.0"},{"ecosystem":"npm","name":"vite","fixedVersion":"5.4.9"}],"fix":{"url":"https://github.com/vitejs/launch-editor/commit/971291e8a6a91226e1616c5c0ec85423d2d50a5e","label":"vitejs/launch-editor@971291e"},"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-52011.json"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:34342"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-52011"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52011.json"},{"type":"ADVISORY","url":"https://github.com/vitejs/launch-editor/security/advisories/GHSA-c27g-q93r-2cwf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52011"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2483853"},{"type":"FIX","url":"https://github.com/vitejs/launch-editor/commit/971291e8a6a91226e1616c5c0ec85423d2d50a5e"},{"type":"WEB","url":"https://github.com/yyx990803/launch-editor/security/advisories/GHSA-c27g-q93r-2cwf"},{"type":"PACKAGE","url":"https://github.com/vitejs/launch-editor"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-06T03:30:20.452870053Z"}}