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.1fixed: 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.4fixed: 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.1fixed: 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.4fixed: 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.1fixed: 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.4fixed: 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
-
gentoo.org
/security/en/glsa/glsa-200412-10.xml
vendor-advisory, patch
-
marc.info
/?l=bugtraq&m=110313588125609&w=2
vendor-advisory
-
bugzilla.fedora.us
/show_bug.cgi?id=2343
vendor-advisory
-
redhat.com
/support/errata/RHSA-2005-036.html
vendor-advisory
-
redhat.com
/support/errata/RHSA-2005-010.html
vendor-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/18503
vdb-entry
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9571
vdb-entry, signature
Sources
- CVE List CVE-2004-1138
- NVD CVE-2004-1138
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.