BreachSpiderVerified, not vibes

CVE-2004-1138 in Vim Development Group Vim

High 7.2 Fix available

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.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 2.07.2
EPSS0.4%
EPSS percentile27th
FixAvailable

Requires local access, low complexity.

Affected products and versions

VendorProductAffected versions
Vim Development Group Vim 5.0 5.1 5.2 5.3 5.4 5.5
+10 more5.6 5.7 5.8 6.0 6.1 6.2 6.3.011 6.3.025 6.3.030 6.3.044

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2004-1138
BreachSpider IDBS-2005-GLOBAL-008317-H
CVSS vectorAV:L/AC:L/Au:N/C:C/I:C/A:C
Published2005-01-10
Last modified2026-04-16
SourceNVD

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2005. A high severity vulnerability affects Vim Development Group systems (CVE-2004-1138). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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. CVSS vector: AV:L/AC:L/Au:N/C:C/I:C/A:C.

Questions

What is CVE-2004-1138?

This vulnerability was disclosed in 2005. A high severity vulnerability affects Vim Development Group systems (CVE-2004-1138). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2004-1138?

CVE-2004-1138 has CVSS 7.2 (High). Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C. EPSS: 0.4%.

Is CVE-2004-1138 actively exploited?

No confirmed active exploitation of CVE-2004-1138 as of 2026-05-30.

How do I remediate CVE-2004-1138?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2004-1138?

CVE-2004-1138 affects Vim Development Group Vim.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Vim Development Group","product":"Vim","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-16.