Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-52011
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 17:16 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 1 Jun 2026, 17:17 UTC

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.

osv:CVE-2024-52011
Complete source record
{
  "id": "3fef027d03b94da96e1db8fe7b22aeba022f6416efa283cb043a3f362819423b",
  "url": "https://osv.dev/vulnerability/CVE-2024-52011",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "launch-editor vulnerable to command injection via the crafted request on Windows",
    "summary": "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.",
    "evidence": "osv:CVE-2024-52011",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-52011",
      "aliases": [
        "CVE-2024-52011",
        "GHSA-c27g-q93r-2cwf"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/vitejs/launch-editor",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "811288a824b570a8ed9570323c924b42ddc62031"
                },
                {
                  "fixed": "971291e8a6a91226e1616c5c0ec85423d2d50a5e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.9.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "971291e8a6a91226e1616c5c0ec85423d2d50a5e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.8.2",
            "v2.8.1",
            "v2.8.0",
            "v2.7.0",
            "v2.6.1",
            "v2.6.0",
            "v2.5.0",
            "v2.4.0",
            "v2.3.0",
            "v2.2.1",
            "v2.2.0",
            "v2.1.0",
            "v2.0.0",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52011.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:21.593016188Z",
      "provider": "osv",
      "references": [
        "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-52011.json",
        "https://access.redhat.com/errata/RHSA-2026:34342",
        "https://access.redhat.com/security/cve/CVE-2024-52011",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52011.json",
        "https://github.com/vitejs/launch-editor/security/advisories/GHSA-c27g-q93r-2cwf",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-52011",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2483853",
        "https://github.com/vitejs/launch-editor/commit/971291e8a6a91226e1616c5c0ec85423d2d50a5e"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-77"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "5.4.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52011.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-52011",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 487626,
  "published_at": "2026-06-01T17:17:43.792+00:00"
}