CVE-2008-3074: OS Command Injection

Published Jul 15, 2008
·
Updated

Description of problem:

Jan Minar has reported the following problem present in Vim shellescape() function implementation and demonstrated by testcases in tar.vim plugin:

The implementation of the shellescape() function does not properly escape all special items, in particular the '!' character). This can result in untrusted data being insufficiently sanitized and possibly lead to arbitrary code execution.

To show this vulnerability can be exploited, the tar.vim plugin test cases has been updated (tarplugin, tarplugin.v2 and tarplugin.updated test cases).

CVE-2008-3074 has been pre-assigned and used in rPath advisory:

http://www.openwall.com/lists/oss-security/2008/07/10/7

References:

http://www.rdancer.org/vulnerablevim-shellescape.html http://www.openwall.com/lists/oss-security/2008/07/15/2 http://www.openwall.com/lists/oss-security/2008/07/10/7 http://www.rdancer.org/vulnerablevim.html http://www.openwall.com/lists/oss-security/2008/07/13/1 http://www.openwall.com/lists/oss-security/2008/08/01/1

Other sources

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.

Red Hat

Affected Software

19 affected componentsFixes available
redhat/vim<2:7.0.109-4.el5_2.4
2:7.0.109-4.el5_2.4
vim Vim=7.1.266
vim tar.vim=v.12
vim Vim=7.1
vim Vim=7.0
vim tar.vim=v.11
vim tar.vim=v.17
vim Vim=7.2
vim tar.vim=v.21
vim tar.vim=v.14
vim tar.vim=v.13
vim tar.vim=v.16
vim tar.vim=v.18
vim tar.vim=v.22
vim tar.vim=v.15
vim Vim=7.1.314
vim tar.vim=v.10
vim tar.vim=v.20
vim tar.vim=v.19

Event History

Jul 15, 2008
CVE Published
via Red Hat·12:00 AM
Oct 17, 2008
Data Sourced
via Red Hat·01:00 PM
DescriptionSeverityAffected Software
Feb 21, 2009
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2008-3074?

CVE-2008-3074 is categorized as a high severity vulnerability due to its ability to allow arbitrary code execution.

2

How do I fix CVE-2008-3074?

To fix CVE-2008-3074, update to Vim version 7.2 or later or apply the appropriate patches from your distribution.

3

Which versions of Vim are affected by CVE-2008-3074?

CVE-2008-3074 affects Vim versions 7.0 through 7.2, including 7.1 and 7.2a.10.

4

What types of attacks are possible with CVE-2008-3074?

CVE-2008-3074 allows user-assisted attackers to execute arbitrary code through crafted tar archive filenames.

5

Is CVE-2008-3074 a critical vulnerability?

Yes, due to its nature of allowing arbitrary code execution, CVE-2008-3074 is considered a critical vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203