summaryrefslogtreecommitdiff
path: root/metadata/glsa/glsa-200412-10.xml
blob: 12e9525e8f2bb6330899599942336bba7d34585e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200412-10">
  <title>Vim, gVim: Vulnerable options in modelines</title>
  <synopsis>
    Several vulnerabilities related to the use of options in modelines have
    been found and fixed in Vim. They could potentially result in a local user
    escalating privileges.
  </synopsis>
  <product type="ebuild">vim</product>
  <announced>2004-12-15</announced>
  <revised count="01">2004-12-15</revised>
  <bug>73715</bug>
  <access>local</access>
  <affected>
    <package name="app-editors/vim" auto="yes" arch="*">
      <unaffected range="ge">6.3-r2</unaffected>
      <vulnerable range="lt">6.3-r2</vulnerable>
    </package>
    <package name="app-editors/gvim" auto="yes" arch="*">
      <unaffected range="ge">6.3-r2</unaffected>
      <vulnerable range="lt">6.3-r2</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    Vim is an efficient, highly configurable improved version of the
    classic 'vi' text editor. gVim is the GUI version of Vim.
    </p>
  </background>
  <description>
    <p>
    Gentoo's Vim maintainer, Ciaran McCreesh, found several
    vulnerabilities related to the use of options in Vim modelines. Options
    like 'termcap', 'printdevice', 'titleold', 'filetype', 'syntax',
    'backupext', 'keymap', 'patchmode' or 'langmenu' could be abused.
    </p>
  </description>
  <impact type="normal">
    <p>
    A local attacker could write a malicious file in a world readable
    location which, when opened in a modeline-enabled Vim, could trigger
    arbitrary commands with the rights of the user opening the file,
    resulting in privilege escalation. Please note that modelines are
    disabled by default in the /etc/vimrc file provided in Gentoo.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All Vim users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=app-editors/vim-6.3-r2"</code>
    <p>
    All gVim users should also upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=app-editors/gvim-6.3-r2"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1138">CAN-2004-1138</uri>
  </references>
  <metadata tag="requester" timestamp="2004-12-10T22:32:12Z">
    koon
  </metadata>
  <metadata tag="submitter" timestamp="2004-12-13T17:03:31Z">
    koon
  </metadata>
  <metadata tag="bugReady" timestamp="2004-12-15T14:00:28Z">
    koon
  </metadata>
</glsa>