
CVE catalog
CVE-2004-1138
vim: CVE-2004-1138
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.41% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | vim | sid | 2:9.2.0858-1 | fixed |
| Debian | vim | forky | 2:9.2.0858-1 | fixed |
| Debian | vim | trixie | 2:9.1.1230-2 | fixed |
| Debian | vim | bookworm | 2:9.0.1378-2+deb12u2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | vim | source | sid | 1:6.3-046+0sarge1 | not yet assigned | Not reported | Not reported |
| Debian | vim | source | forky | 1:6.3-046+0sarge1 | not yet assigned | Not reported | Not reported |
| Debian | vim | source | trixie | 1:6.3-046+0sarge1 | not yet assigned | Not reported | Not reported |
| Debian | vim | source | bookworm | 1:6.3-046+0sarge1 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [vim]Fixed
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· arm64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [vim-athena]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [vim-common]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [vim-doc]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [vim-gtk3]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· arm64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [vim-gui-common]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [vim-motif]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· arm64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [vim-nox]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· arm64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [vim-runtime]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· all · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [vim-tiny]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· arm64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
- [xxd]Fixed
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
2:9.0.1378-2+deb12u2· arm64 · bookwormFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · bookworm; dsa · vim · debian · 12
[Debian 13 (Trixie)]
- [vim]Fixed
Details (2)
2:9.1.1230-2· amd64 · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
2:9.1.1230-2· arm64 · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
- [vim-athena]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
- [vim-common]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
- [vim-doc]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
- [vim-gtk3]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· amd64 · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
2:9.1.1230-2· arm64 · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
- [vim-gui-common]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
- [vim-motif]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· amd64 · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
2:9.1.1230-2· arm64 · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
- [vim-nox]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· amd64 · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
2:9.1.1230-2· arm64 · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
- [vim-runtime]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
1:6.3-046+0sarge1dsa · vim · debian · 13
Observed: