SecurityContext

CVE-2026-52858: Vim - Remote Code Execution

  • Cve: CVE-2026-52858
  • Name: Vim - Remote Code Execution
  • 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.
  • Impact: Attackers can execute arbitrary Python code as the editing user, potentially leading to full system compromise.
  • Remediation: Update to version 9.2.0561 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00201
  • Epss percentile: 0.09972
  • Assignee: [email protected]
  • Published at: 2026-06-11T19:16:47Z
  • Age in days: 166
  • Modified at: 2026-06-17T10:57:53Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-52858
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/vim/vim/commit/4b850457e12e1a678dd209f2868154f7553cbf8dPatch
https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7cMitigation, Vendor Advisory
https://github.com/vim/vim/releases/tag/v9.2.0561Product

Products

ProductAffectedPlatform boundSourcesUrl
vim:vim< 9.2.0561nonvd/v1/products/vim/vim

Projects

RepositoryLink kindsIndexedUrl
vim/vimcommit, releases, security_advisoryyes/v1/repositories/vim/vim

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exposed hosts: 365
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports