Skip to content
OpenAdvisories
Unscored CVE-2008-3074 EUVD-2008-3064GHSA-rj5h-39v8-hch3

The shellescape function in Vim 7.0 through 7.2, including 7.2a.10, allows user-assisted attackers to execute arbitrary code via the "!" (e…

Published Feb 21, 2009 · Updated Aug 7, 2024 · Assigned by mitre

Description

The shellescape function in Vim 7.0 through 7.2, including 7.2a.10, allows user-assisted attackers to execute arbitrary code via the "!" (exclamation point) shell metacharacter in (1) the filename of a tar archive and possibly (2) the filename of the first file in a tar archive, which is not properly handled by the VIM TAR plugin (tar.vim) v.10 through v.22, as demonstrated by the shellescape, tarplugin.v2, tarplugin, and tarplugin.updated test cases. NOTE: this issue reportedly exists because of an incomplete fix for CVE-2008-2712. NOTE: this issue has the same root cause as CVE-2008-3075. NOTE: due to the complexity of the associated disclosures and the incomplete information related to them, there may be inaccuracies in this CVE description and in external mappings to this identifier.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 vim 2:7.2.010-1 —
Debian 13 vim 2:7.2.010-1 —
Debian 12 vim 2:7.2.010-1 —
Debian 4.0 vim 1:7.0-122+1etch5 DSA-1733-1
ReleasePackageFixed inAdvisory
RHEL 5 vim +4 2:7.0.109-4.el5_2.4z RHSA-2008:0580

Advisories 2

References