[Security] MacVim affected by CVE-2026-44656 — :find completion backtick OS command injection (vim < 9.2.0435)
还没有人认领这个 Issue。
评估
调研方向
首先检查捆绑的 Vim 9.2 补丁,并将 git log --all --oneline | grep 190cb3c2 与上游提交 190cb3c2b9c769a3972bcfd991a7b5b6cb771ef0 进行比较。将捆绑的源代码更新到 Vim 9.2.0435 或更高版本,然后验证该修复已包含在 MacVim 构建中,并且受影响的 :find 补全行为不再存在漏洞。
由索引模型根据 Issue 内容生成。
描述
[Security] MacVim affected by CVE-2026-44656 — :find completion backtick OS command injection (vim < 9.2.0435)
Summary
MacVim bundles the vim source at version 9.2 (patches 1-332 in the current build), which is
below the patched version 9.2.0435 that fixes CVE-2026-44656.
Vulnerability Details
- Upstream CVE: CVE-2026-44656
- Inherited from:
vim/vim - Affected code:
:findcommand-line completion withpathoption - Vulnerability type: CWE-78 — OS Command Injection
- Fixed in: vim 9.2.0435 (commit
190cb3c2b9c769a3972bcfd991a7b5b6cb771ef0)
Root Cause
Prior to vim 9.2.0435, an OS command injection vulnerability exists in Vim's :find
command-line completion. When the path option contains backtick-enclosed shell commands
(e.g., path= cmd``), those commands are executed during filename completion. Because the pathoption can be set via modelines or project-local configuration files, an attacker who controls such files can execute arbitrary commands when the victim uses tab-completion with:find`.
Affected MacVim Version
MacVim r183 (vim 9.2 patches 1-332) — current HEAD as of 2026-05-18.
The fix commit 190cb3c2b9c769a3972bcfd991a7b5b6cb771ef0 from vim/vim is not present
in the macvim-dev/macvim repository:
git log --all --oneline | grep 190cb3c2 # returns no output
Suggested Fix
Merge or cherry-pick vim/vim patches up to at least 9.2.0435:
References
- 主要语言
- Vim Script
- 星标
- 7.9k
- 派生
- 691
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
macvim-dev/macvim 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
macvim-dev/macvim#1697 · 4 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
macvim-dev/macvim#1658 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
macvim-dev/macvim#1657 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
macvim-dev/macvim#1655 ·
-
难度 2/5 半天 新手友好度 72/100
macvim-dev/macvim#1653 ·
查看 macvim-dev/macvim 的全部 Issue
相似的 Issue
-
bug 🐞
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
extension extension: raycast-system-monitor feature request platform: macOS
难度 2/5 1-3 小时 新手友好度 70/100
raycast/extensions#31335 · 2 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
AvengeMedia/DankMaterialShell#3520 ·