CVE-2004-1138: 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…
Noroxi assessment
Priority: Monitor (action score 28/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.41% (FIRST EPSS).
- No special conditions are required; it is repeatable.
- Fixed version: vim (Debian:12) 1:6.3-046+0sarge1; vim (Red Hat:enterprise_linux:3::as) 1:6.3.046-0.30E.1; vim-common (Red Hat:enterprise_linux:3::as) 1:6.3.046-0.30E.1.
Low priority for now. Upgrade to vim (Debian:12) 1:6.3-046+0sarge1; vim (Red Hat:enterprise_linux:3::as) 1:6.3.046-0.30E.1; vim-common (Red Hat:enterprise_linux:3::as) 1:6.3.046-0.30E.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jan 10, 2005
- Updated
- Jun 16, 2026
- EPSS
- 0.4% · 35th percentile
- CWE
- —
Report tools
Action score
28
Low priority for now.
- CVSS
- 28 / 40 · 7.2 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| vim development group | vim | cpe:2.3:a:vim_development_group:vim |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- vim development group vim5.0
- vim development group vim5.1
- vim development group vim5.2
- vim development group vim5.3
- vim development group vim5.4
- vim development group vim5.5
- vim development group vim5.6
- vim development group vim5.7
+8 more rows
- vim development group vim5.8
- vim development group vim6.0
- vim development group vim6.1
- vim development group vim6.2
- vim development group vim6.3.011
- vim development group vim6.3.025
- vim development group vim6.3.030
- vim development group vim6.3.044
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | vim | before 1:6.3-046+0sarge1 | 1:6.3-046+0sarge1 |
| Red Hat:enterprise_linux:3::as | vim | before 1:6.3.046-0.30E.1 | 1:6.3.046-0.30E.1 |
| Red Hat:enterprise_linux:3::as | vim-common | before 1:6.3.046-0.30E.1 | 1:6.3.046-0.30E.1 |
| Red Hat:enterprise_linux:3::as | vim-debuginfo | before 1:6.3.046-0.30E.1 | 1:6.3.046-0.30E.1 |
| Red Hat:enterprise_linux:3::as | vim-enhanced | before 1:6.3.046-0.30E.1 | 1:6.3.046-0.30E.1 |
| Red Hat:enterprise_linux:3::as | vim-minimal | before 1:6.3.046-0.30E.1 | 1:6.3.046-0.30E.1 |
| Red Hat:enterprise_linux:3::as | vim-X11 | before 1:6.3.046-0.30E.1 | 1:6.3.046-0.30E.1 |
| Red Hat:enterprise_linux:4::as | vim | before 1:6.3.046-0.40E.4 | 1:6.3.046-0.40E.4 |
| Red Hat:enterprise_linux:4::as | vim-common | before 1:6.3.046-0.40E.4 | 1:6.3.046-0.40E.4 |
| Red Hat:enterprise_linux:4::as | vim-debuginfo | before 1:6.3.046-0.40E.4 | 1:6.3.046-0.40E.4 |
| Red Hat:enterprise_linux:4::as | vim-enhanced | before 1:6.3.046-0.40E.4 | 1:6.3.046-0.40E.4 |
| Red Hat:enterprise_linux:4::as | vim-minimal | before 1:6.3.046-0.40E.4 | 1:6.3.046-0.40E.4 |
| Red Hat:enterprise_linux:4::as | vim-X11 | before 1:6.3.046-0.40E.4 | 1:6.3.046-0.40E.4 |
Same product
vim development group: all recordsOther highest-scoring records for the same primary product.
- CVE-2005-2368vim 6.3 before 6.3.082, with modelines enabled, allows external user-assisted attackers to execute arbitrary commands via shell…38Monitor
- CVE-2007-2953Format string vulnerability in the helptags_one function in src/ex_cmds.c in Vim 6.4 and earlier, and 7.x up to 7.1, allows user-assisted…28Monitor
- CVE-2001-0408vim (aka gvim) processes VIM control codes that are embedded in a file, which could allow attackers to execute arbitrary commands when…21Monitor
Published before and after this one in the same product
- ← EarlierCVE-2001-0409Jun 18, 2001 · vim (aka gvim) allows local users to modify files being edited by other users via a symlink attack on the backup and swap files, when the…8Monitor
- ← EarlierCVE-2002-1377Dec 23, 2002 · vim 6.0 and 6.1, and possibly other versions, allows attackers to execute arbitrary commands using the libcall feature in modelines, which…18Monitor
- Later →CVE-2005-0069Jan 13, 2005 · The (1) tcltags or (2) vimspell.sh scripts in vim 6.3 allow local users to overwrite or create arbitrary files via a symlink attack on…18Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:vim | 1:6.3-046+0sarge1 · Debian:12 | Package registry (OSV) |
| red hat:vim | 1:6.3.046-0.30E.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:vim-common | 1:6.3.046-0.30E.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:vim-debuginfo | 1:6.3.046-0.30E.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:vim-enhanced | 1:6.3.046-0.30E.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:vim-minimal | 1:6.3.046-0.30E.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:vim-X11 | 1:6.3.046-0.30E.1 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- C · data can be read
- Integrity
- C · data or configuration can be modified
- Availability
- C · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- C
- Integrity impact
- C
- Availability impact
- C
Weakness class (CWE)
—
CVSS vector
AV:L/AC:L/Au:N/C:C/I:C/A:C
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (6 more)Show less
- www.gentoo.org/security/en/glsa/glsa-200412-10.xml
- www.redhat.com/support/errata/RHSA-2005-010.html
- www.redhat.com/support/errata/RHSA-2005-036.html
- bugzilla.fedora.us/show_bug.cgi?id=2343
- exchange.xforce.ibmcloud.com/vulnerabilities/18503
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9571
Vendor advisories and official records. Exploit/PoC links are deliberately left out.