CVE-2004-1138: Vim Development Group Vim

High severity, CVSS 7.2. EPSS: 0.4% chance of exploitation in the next 30 days.

VIM before 6.3 and gVim before 6.3 allow local users to execute arbitrary commands via a file containing a crafted modeline that is executed when the file is viewed using options such as (1) termcap, (2) printdevice, (3) titleold, (4) filetype, (5) syntax, (6) backupext, (7) keymap, (8) patchmode, or (9) langmenu.

Affected products

  • Vim Development Group Vim: version 5.0 only; version 5.1 only; version 5.2 only; version 5.3 only; version 5.4 only; version 5.5 only; …

Published 2005-01-10. Last modified 2026-06-16.