{
  "id": "CVE-2026-52858",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-52858",
  "published_at": "2026-06-11T18:32:32.722Z",
  "title": "Vim: Arbitrary Code Execution via Python Omni-Completion",
  "vendor": "vim",
  "product": "vim",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Vim is an open source, command line text editor. Prior to version 9.2.0561, the Python omni-completion script in python3complete.vim for Vim with the +python3 interpreter enabled (and the legacy pythoncomplete.vim for builds with the +python interpreter) executes the import and from statements found in the current buffer through Python's import machinery. Because the buffer's working directory is on sys.path, opening a hostile .py file with a sibling Python package and invoking omni-completion runs that package's top-level code as the editing user. This issue has been patched in version 9.2.0561.",
  "cwe": "CWE-94",
  "cpes": [
    "cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.3,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "vim",
        "product": "vim",
        "ranges": [
          "\u003c 9.2.0561"
        ],
        "fixed_in": [
          "9.2.0561"
        ]
      }
    ],
    "upgrade": [
      "Upgrade vim to 9.2.0561 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/vim/vim/commit/4b850457e12e1a678dd209f2868154f7553cbf8d"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/vim/vim/releases/tag/v9.2.0561"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
