CVEBrief

Home / Vim Development Group / Vim / CVE-2004-1138

CVE-2004-1138: is it exploited, and which versions of Vim Development Group Vim are affected and fixed?

CVE-2004-1138 is a vulnerability in Vim Development Group Vim. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:08 UTC). Affected: vim 5.0, vim 5.1, vim 5.2 and 13 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.2, CVSS 2.0, from NVD).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:08 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:54 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 08:08 UTC
Affected
vim 5.0, vim 5.1, vim 5.2 and 13 more
NVD
Fixed in
Not listed
check the vendor advisory
Severity
High 7.2
CVSS 2.0 from NVD
Exploit odds (EPSS)
0.41% in 30 days
higher than 37% of CVEs; FIRST, December 2, 2026

What is 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.

From the CVE record by mitre, last updated August 8, 2024, 00:39 UTC.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
vim development groupvim5.0application
vim development groupvim5.1application
vim development groupvim5.2application
vim development groupvim5.3application
vim development groupvim5.4application
vim development groupvim5.5application
vim development groupvim5.6application
vim development groupvim5.7application
vim development groupvim5.8application
vim development groupvim6.0application
vim development groupvim6.1application
vim development groupvim6.2application
vim development groupvim6.3.011application
vim development groupvim6.3.025application
vim development groupvim6.3.030application
vim development groupvim6.3.044application

NVD analysis (status Modified), last modified June 16, 2026, 22:07 UTC.

How severe is CVE-2004-1138?

ScoreVersionVectorSource
High 7.2CVSS 2.0AV:L/AC:L/Au:N/C:C/I:C/A:CNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2004-1138 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.41% probability of exploitation activity in the next 30 days, percentile 37.3 (FIRST EPSS, scores of December 2, 2026)

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
December 6, 2004
Published
December 22, 2004, 05:00 UTC
CVE record updated
August 8, 2024, 00:39 UTC by mitre
NVD
Modified, last modified June 16, 2026, 22:07 UTC
Last checked
CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:54 UTC; KEV December 3, 2026, 08:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Vim?

Every CVE in Vim

Questions about CVE-2004-1138

Is CVE-2004-1138 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:08 UTC. FIRST's EPSS gives it a 0.41% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Vim Development Group Vim are affected by CVE-2004-1138?

vim 5.0, vim 5.1, vim 5.2, vim 5.3, vim 5.4, vim 5.5 and 10 more, per the NVD. The tables above give every range the sources list.

Which version fixes CVE-2004-1138?

None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.

How severe is CVE-2004-1138?

High (7.2, CVSS 2.0, from NVD). The severity table above shows each score with its source.

Where is the official record of CVE-2004-1138?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.