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 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: 2005-01-10 Last update: 2026-04-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2004-1138 is rated Low Risk (36/100): CVSS High severity, with low exploitation likelihood (EPSS 0.06%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2004-1138

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2023-03-07 1.03% 0.06% -0.97%
2 2022-02-04 1.03%

Full EPSS history (2 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2004-1138

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.2 2.0 HIGH
AV:L/AC:L/Au:N/C:C/I:C/A:C Click to expand
Access vector (AV:L)
Requires local access to the target system.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:C)
Complete confidentiality impact.
Integrity impact (I:C)
Complete integrity impact.
Availability impact (A:C)
Complete availability impact.
3.9 10.0 [email protected]

Weakness enumeration for CVE-2004-1138

OS Trackers for CVE-2004-1138

vendor priority summary link
debian not yet assigned CVE-2004-1138 not yet assigned priority: Debian including 1 source packages (vim), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2004-1138
redhat low https://access.redhat.com/security/cve/CVE-2004-1138
suse medium https://www.suse.com/security/cve/CVE-2004-1138/
ubuntu medium CVE-2004-1138 medium priority: Ubuntu including 1 source packages (vim), 4 status rows across 4 suites (dapper, edgy, feisty, upstream): released 3, needs-triage 1. https://ubuntu.com/security/CVE-2004-1138

Affected software / configurations for CVE-2004-1138

Vendor Product Version Raw CPE
vim_development_group vim 5.0 cpe:2.3:a:vim_development_group:vim:5.0:*:*:*:*:*:*:*
vim_development_group vim 5.1 cpe:2.3:a:vim_development_group:vim:5.1:*:*:*:*:*:*:*
vim_development_group vim 5.2 cpe:2.3:a:vim_development_group:vim:5.2:*:*:*:*:*:*:*
vim_development_group vim 5.3 cpe:2.3:a:vim_development_group:vim:5.3:*:*:*:*:*:*:*
vim_development_group vim 5.4 cpe:2.3:a:vim_development_group:vim:5.4:*:*:*:*:*:*:*
vim_development_group vim 5.5 cpe:2.3:a:vim_development_group:vim:5.5:*:*:*:*:*:*:*
vim_development_group vim 5.6 cpe:2.3:a:vim_development_group:vim:5.6:*:*:*:*:*:*:*
vim_development_group vim 5.7 cpe:2.3:a:vim_development_group:vim:5.7:*:*:*:*:*:*:*
vim_development_group vim 5.8 cpe:2.3:a:vim_development_group:vim:5.8:*:*:*:*:*:*:*
vim_development_group vim 6.0 cpe:2.3:a:vim_development_group:vim:6.0:*:*:*:*:*:*:*
vim_development_group vim 6.1 cpe:2.3:a:vim_development_group:vim:6.1:*:*:*:*:*:*:*
vim_development_group vim 6.2 cpe:2.3:a:vim_development_group:vim:6.2:*:*:*:*:*:*:*
vim_development_group vim 6.3.011 cpe:2.3:a:vim_development_group:vim:6.3.011:*:*:*:*:*:*:*
vim_development_group vim 6.3.025 cpe:2.3:a:vim_development_group:vim:6.3.025:*:*:*:*:*:*:*
vim_development_group vim 6.3.030 cpe:2.3:a:vim_development_group:vim:6.3.030:*:*:*:*:*:*:*
vim_development_group vim 6.3.044 cpe:2.3:a:vim_development_group:vim:6.3.044:*:*:*:*:*:*:*

References for CVE-2004-1138

cvelogic Threat Intelligence