{"schemaVersion":3,"id":"CVE-2004-1138","aliases":["RHSA-2005:010","DEBIAN-CVE-2004-1138"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2004-12-22T05:00:00.000Z","modified":"2024-08-08T00:39:00.870Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.2,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.2,"severity":"high","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0041,"percentile":0.33816,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0041},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0041,"percentile":0.33816}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0041,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0041,"percentile":0.33816}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"debian","product":"vim","name":"vim","label":"vim","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/vim","purlType":"deb","versions":[{"text":"< 1:6.3-046+0sarge1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:6.3-046+0sarge1","eol":null,"hubHref":null},{"vendor":"redhat","product":"vim","name":"vim","label":"vim","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/vim","purlType":"rpm","versions":[{"text":"< 1:6.3.046-0.30E.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:6.3.046-0.30E.1","eol":null,"hubHref":null},{"vendor":"redhat","product":"vim-common","name":"vim-common","label":"vim-common","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/vim-common","purlType":"rpm","versions":[{"text":"< 1:6.3.046-0.30E.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:6.3.046-0.30E.1","eol":null,"hubHref":null},{"vendor":"redhat","product":"vim-debuginfo","name":"vim-debuginfo","label":"vim-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/vim-debuginfo","purlType":"rpm","versions":[{"text":"< 1:6.3.046-0.30E.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:6.3.046-0.30E.1","eol":null,"hubHref":null},{"vendor":"redhat","product":"vim-enhanced","name":"vim-enhanced","label":"vim-enhanced","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/vim-enhanced","purlType":"rpm","versions":[{"text":"< 1:6.3.046-0.30E.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:6.3.046-0.30E.1","eol":null,"hubHref":null},{"vendor":"redhat","product":"vim-minimal","name":"vim-minimal","label":"vim-minimal","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/vim-minimal","purlType":"rpm","versions":[{"text":"< 1:6.3.046-0.30E.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:6.3.046-0.30E.1","eol":null,"hubHref":null},{"vendor":"redhat","product":"vim-X11","name":"vim-X11","label":"vim-X11","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/vim-X11","purlType":"rpm","versions":[{"text":"< 1:6.3.046-0.30E.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:6.3.046-0.30E.1","eol":null,"hubHref":null},{"vendor":"vim_development_group","product":"vim","name":"vim","label":"vim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"5.0","noFixRecorded":false,"fixedIn":null},{"text":"5.1","noFixRecorded":false,"fixedIn":null},{"text":"5.2","noFixRecorded":false,"fixedIn":null},{"text":"5.3","noFixRecorded":false,"fixedIn":null},{"text":"5.4","noFixRecorded":false,"fixedIn":null},{"text":"5.5","noFixRecorded":false,"fixedIn":null},{"text":"5.6","noFixRecorded":false,"fixedIn":null},{"text":"5.7","noFixRecorded":false,"fixedIn":null},{"text":"5.8","noFixRecorded":false,"fixedIn":null},{"text":"6.0","noFixRecorded":false,"fixedIn":null},{"text":"6.1","noFixRecorded":false,"fixedIn":null},{"text":"6.2","noFixRecorded":false,"fixedIn":null},{"text":"6.3.011","noFixRecorded":false,"fixedIn":null},{"text":"6.3.025","noFixRecorded":false,"fixedIn":null},{"text":"6.3.030","noFixRecorded":false,"fixedIn":null},{"text":"6.3.044","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.0 | 5.1 | 5.2 | 5.3 | 5.4 | 5.5 | 5.6 | 5.7 | 5.8 | 6.0 | 6.1 | 6.2 | 6.3.011 | 6.3.025 | 6.3.030 | 6.3.044","eol":null,"hubHref":"/vendor/vim_development_group/vim"}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://marc.info/?l=bugtraq&m=110313588125609&w=2","label":"marc.info?l=bugtraq&m=110313588125609&w=2","hostname":"marc.info","tags":["Vendor Advisory","X Refsource OPENPKG"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-10.xml","label":"www.gentoo.org/security/en/glsa/glsa-200412-10.xml","hostname":"www.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Patch"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18503","label":"exchange.xforce.ibmcloud.com/vulnerabilities/18503","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF"]},{"url":"https://bugzilla.fedora.us/show_bug.cgi?id=2343","label":"bugzilla.fedora.us/show_bug.cgi?id=2343","hostname":"bugzilla.fedora.us","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-036.html","label":"www.redhat.com/support/errata/RHSA-2005-036.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-010.html","label":"www.redhat.com/support/errata/RHSA-2005-010.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9571","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9571","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL"]},{"url":"https://access.redhat.com/errata/RHSA-2005:010","label":"access.redhat.com/errata/RHSA-2005:010","hostname":"access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#low","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=142444","label":"bugzilla.redhat.com/show_bug.cgi?id=142444","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2005/rhsa-2005_010.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2005/rhsa-2005_010.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1138","label":"access.redhat.com/security/cve/CVE-2004-1138","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617374","label":"bugzilla.redhat.com/show_bug.cgi?id=1617374","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1138","label":"www.cve.org/CVERecord?id=CVE-2004-1138","hostname":"www.cve.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1138","label":"nvd.nist.gov/vuln/detail/CVE-2004-1138","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2004-1138","label":"security-tracker.debian.org/tracker/CVE-2004-1138","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["RHSA-2005:036"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2004-12-22T05:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-08T00:39:00.870Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:37:24.765Z","stale":false,"partial":false}}