{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "9.2.0383"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "405e2fb6d54d5653523809e2853d99d1c000a5fc"
            }
          ],
          "repo": "https://github.com/vim/vim",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-85ch-p2qr-m5gx"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42307.json"
  },
  "details": "Vim is an open source, command line text editor. Prior to version 9.2.0383, an OS command injection vulnerability exists in the netrw standard plugin bundled with Vim. By inducing a user to open a crafted URL (e.g., using the sftp:// or file:// protocol handlers), an attacker can execute arbitrary shell commands with the privileges of the Vim process. This issue has been patched in version 9.2.0383.",
  "id": "CVE-2026-42307",
  "modified": "2026-07-15T01:49:00.603861677Z",
  "published": "2026-05-08T22:38:53.964Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/vim/vim/releases/tag/v9.2.0383"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42307.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/vim/vim/security/advisories/GHSA-85ch-p2qr-m5gx"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42307"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vim/vim/commit/405e2fb6d54d5653523809e2853d99d1c000a5fc"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Vim: OS Command Injection in netrw"
}