# CVE-2026-73077: Vim: Arbitrary Code Execution via Shell Keyword Lookup

- Severity: High 8.4 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-08-11T15:39:24.579Z
- Modified: 2026-10-06T19:34:36.703Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Vim is an open source, command line text editor. Prior to 9.2.0839, the runtime/ftplugin/sh.vim, runtime/ftplugin/zsh.vim, and runtime/ftplugin/ps1.vim filetype plugins pass attacker-controlled Visual-mode selections from K through keywordprg commands without safely separating shell arguments. fnameescape() and PATH_ESC_CHARS do not neutralize shell metacharacters before ShKeywordPrg, ZshKeywordPrg, or GetHelp invokes bash, zsh, or PowerShell, allowing arbitrary operating-system commands to execute with the privileges of the user running Vim. This issue is fixed in version 9.2.0839.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0839; before 9.2.0839

## Every score

- GitHub_M: CVSS:4.0 8.4 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-r5v6-q6j8-8qw2> (patch, vendor-advisory)
- <https://github.com/vim/vim/commit/c5a82fe013e73c98004ad7cd4f906b1ad1ed610e> (patch)

## Sources

- CVE List: [CVE-2026-73077](https://www.cve.org/CVERecord?id=CVE-2026-73077), CVE Terms of Use, modified 2026-08-11
- NVD: [CVE-2026-73077](https://nvd.nist.gov/vuln/detail/CVE-2026-73077), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2026-73077 · Whole record: https://cve.day/CVE-2026-73077.json · Rebuilt by cve.day 2026-11-25T22:59:32.274Z
