Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-59856— Vim: Arbitrary Code Execution via PHP Omni-Completion

Quick assessment

Affected
vim vim
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Vim是Vim组织开源的一款跨平台的文本编辑器。 Vim 9.2.0736之前版本存在代码注入漏洞,该漏洞源于PHP omni-completion脚本在runtime/autoload/phpcomplete.vim中未转义编辑缓冲区内容中的类或特征名,当受害者打开特制PHP文件并调用omni-completion时,可能导致任意操作系统命令执行。

AI Predicted 8.8 Difficulty: Trivial EPSS 0.22% · P11

Affected Version Matrix 1

VendorProduct Version RangeStatus
vim vim < 9.2.0736 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59856

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Vim: Arbitrary Code Execution via PHP Omni-Completion
Source: CVE Program / CVE List V5
Vulnerability Description
Vim is an open source, command line text editor. Prior to 9.2.0736, the PHP omni-completion script in runtime/autoload/phpcomplete.vim interpolates a class or trait name, taken from the contents of the edited buffer, into a search() pattern that is run via win_execute() without escaping. A name containing a single quote can terminate the search() string argument early, and because the bar is honored as an Ex command separator, the remainder of the name is run as Ex commands; via the :! command this allows arbitrary operating-system command execution when a victim opens a crafted PHP file and invokes omni-completion. This issue is fixed in version 9.2.0736.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Vim 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Vim是Vim组织开源的一款跨平台的文本编辑器。 Vim 9.2.0736之前版本存在代码注入漏洞,该漏洞源于PHP omni-completion脚本在runtime/autoload/phpcomplete.vim中未转义编辑缓冲区内容中的类或特征名,当受害者打开特制PHP文件并调用omni-completion时,可能导致任意操作系统命令执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
vim vim < 9.2.0736 -

II. Public POCs for CVE-2026-59856

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59856

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-59856 (1)

Vendor Advisories for CVE-2026-59856 (1)

Same Patch Batch · vim · 2026-07-09 · 3 CVEs total

CVE-2026-59857 Vim: Out-of-bounds Write in SAL Soundfolding
CVE-2026-59858 Vim: Arbitrary Code Execution via C Omni-Completion

IV. Related Vulnerabilities

V. Comments for CVE-2026-59856

No comments yet


Leave a comment