JLSEC-2026-1861: High severity julia/vim_jll vulnerability
Vim is an open source, command line text editor. Prior to version 9.2.0276, a modeline sandbox bypass in Vim allows arbitrary OS command execution when a user opens a crafted file. The complete, guitabtooltip and printheader options are missing the PMLE flag, allowing a modeline to be executed. Additionally, the mapset() function lacks a checksecure() call, allowing it to be abused from sandboxed expressions. Commit 9.2.0276 fixes the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.2.0276
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Users who open a crafted file in an affected Vim version are exposed. Exploitation requires user interaction, as the file must be opened by the user.
What access does an attacker need?
The attack does not require prior privileges on the target system. An attacker needs to provide or persuade a user to open a crafted file containing a malicious modeline.
What is the remediation?
Update Vim to version 9.2.0276 or later. The fix adds the missing modeline protections for the affected options and adds a security check to mapset().