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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-57456— Vim: Arbitrary Code Execution via Python Omni-Completion Docstrings

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.0699之前版本存在代码注入漏洞,该漏洞源于Python自动完成功能在重构源代码时未对docstring进行转义,可能导致恶意缓冲区在自动完成过程中执行攻击者控制的Python代码。

AI Predicted 7.5 Difficulty: Trivial EPSS 0.14% · P3

Affected Version Matrix 1

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

I. Basic Information for CVE-2026-57456

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 Python Omni-Completion Docstrings
Source: CVE Program / CVE List V5
Vulnerability Description
Vim is an open source, command line text editor. Prior to 9.2.0699, Vim's Python omni-completion (runtime/autoload/python3complete.vim and the legacy pythoncomplete.vim) executes reconstructed function and class definitions from the current buffer with exec() as part of populating the completion dictionary. When reconstructing that source, each scope's docstring is inserted verbatim between triple quotes with no escaping, so a hostile buffer can break out of the triple-quoted literal and execute attacker-controlled Python during omni-completion. This vulnerability is fixed in 9.2.0699.
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.0699之前版本存在代码注入漏洞,该漏洞源于Python自动完成功能在重构源代码时未对docstring进行转义,可能导致恶意缓冲区在自动完成过程中执行攻击者控制的Python代码。
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.0699 -

II. Public POCs for CVE-2026-57456

# 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-57456

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

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

Vendor Advisories for CVE-2026-57456 (1)

Vendor Pages for CVE-2026-57456 (1)

Same Patch Batch · vim · 2026-06-25 · 9 CVEs total

CVE-2026-57453 6.5 MEDIUM Vim: PowerShell Command Injection via Unescaped Filename in zip.vim Extraction
CVE-2026-57452 5.5 MEDIUM Vim: Out-of-bounds Read with libsodium-encrypted Files
CVE-2026-55892 5.5 MEDIUM Vim: Out-of-bounds Write in Spell File Prefix Dump
CVE-2026-57451 5.3 MEDIUM Vim: Out-of-bounds Read in Text Property Count
CVE-2026-57455 Vim: Stack out-of-bounds write in `spell_soundfold_sofo()` via an over-length `soundfold()
CVE-2026-57454 Vim: Out-of-bounds Read with Text Properties
CVE-2026-55895 Vim: Vimscript Code Injection in netrw NetrwLocalRmFile() via crafted filename
CVE-2026-55693 Vim: Out-of-bounds Write in Spell File Word Count

IV. Related Vulnerabilities

V. Comments for CVE-2026-57456

No comments yet


Leave a comment