Skip to content
Fencer Vulns
high 7.2

CVE-2004-1138 json

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 execute…

published 2004-12-22 21 y ago modified 2026-06-16 4 mo ago also EUVD-2004-1136

cvss
7.2
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 35%
public exploits
0
none known

Summary

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.

Patch / fix

  • vim Debian 14, Debian 13, Debian 12 1:6.3-046+0sarge1

debian advisories DEBIAN-CVE-2004-1138

  • vim RHEL 3 1:6.3.046-0.30E.1
  • vim-X11 RHEL 3 1:6.3.046-0.30E.1
  • vim-common RHEL 3 1:6.3.046-0.30E.1
  • vim-minimal RHEL 3 1:6.3.046-0.30E.1
  • vim-enhanced RHEL 3 1:6.3.046-0.30E.1
  • vim RHEL 4 1:6.3.046-0.40E.4
  • vim-X11 RHEL 4 1:6.3.046-0.40E.4
  • vim-common RHEL 4 1:6.3.046-0.40E.4

red hat advisories RHSA-2005:010RHSA-2005:036

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2004-1138 updated

security flaw

  • Red Hat Desktop version 3 vim 6.3.046-0.30E.1, vim-X11 6.3.046-0.30E.1, vim-common 6.3.046-0.30E.1, vim-minimal 6.3.046-0.30E.1, vim-enhanced 6.3.046-0.30E.1 Red Hat Enterprise Linux AS version 3 vim 6.3.046-0.30E.1, vim-X11 6.3.046-0.30E.1, vim-common 6.3.046-0.30E.1, vim-minimal 6.3.046-0.30E.1, vim-enhanced 6.3.046-0.30E.1
    fixed: vendor fix RHSA-2005:010
  • Red Hat Enterprise Linux AS version 4 vim 6.3.046-0.40E.4, vim-X11 6.3.046-0.40E.4, vim-common 6.3.046-0.40E.4, vim-minimal 6.3.046-0.40E.4, vim-enhanced 6.3.046-0.40E.4 Red Hat Enterprise Linux Desktop version 4 vim 6.3.046-0.40E.4, vim-X11 6.3.046-0.40E.4, vim-common 6.3.046-0.40E.4, vim-minimal 6.3.046-0.40E.4, vim-enhanced 6.3.046-0.40E.4
    fixed: vendor fix RHSA-2005:036
  • Red Hat Enterprise Linux ES version 3 vim 6.3.046-0.30E.1, vim-X11 6.3.046-0.30E.1, vim-common 6.3.046-0.30E.1, vim-minimal 6.3.046-0.30E.1, vim-enhanced 6.3.046-0.30E.1
    fixed: vendor fix RHSA-2005:010
  • Red Hat Enterprise Linux ES version 4 vim 6.3.046-0.40E.4, vim-X11 6.3.046-0.40E.4, vim-common 6.3.046-0.40E.4, vim-minimal 6.3.046-0.40E.4, vim-enhanced 6.3.046-0.40E.4
    fixed: vendor fix RHSA-2005:036
  • Red Hat Enterprise Linux WS version 3 vim 6.3.046-0.30E.1, vim-X11 6.3.046-0.30E.1, vim-common 6.3.046-0.30E.1, vim-minimal 6.3.046-0.30E.1, vim-enhanced 6.3.046-0.30E.1
    fixed: vendor fix RHSA-2005:010
  • Red Hat Enterprise Linux WS version 4 vim 6.3.046-0.40E.4, vim-X11 6.3.046-0.40E.4, vim-common 6.3.046-0.40E.4, vim-minimal 6.3.046-0.40E.4, vim-enhanced 6.3.046-0.40E.4
    fixed: vendor fix RHSA-2005:036

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 2.0 7.2 AV:L/AC:L/Au:N/C:C/I:C/A:C

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.