Bug 461745 - vim: arbitrary command execution when handling tar archives
Summary: vim: arbitrary command execution when handling tar archives
Keywords:
Status: CLOSED DUPLICATE of bug 451759
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: CVE-2008-2712
TreeView+ depends on / blocked
 
Reported: 2008-09-10 12:18 UTC by Jan Lieskovsky
Modified: 2019-09-29 12:26 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-09-11 14:01:34 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Lieskovsky 2008-09-10 12:18:30 UTC
Description of problem:

A security vulnerability was discovered in the way, vim processes
the names of files, directories and tar archives. The fnameescape()
function makes the untrusted file name safe as an argument to ``execute''.
The sanitization of the provided inputs, performed by this function is not sufficient, which results into the situation,in which the code which uses the
output of the fnameescape() function is vulnerable again, i.e. the commands called by ``execute'' will in turn each interpret the untrusted file name
again. An attacker could use this flaw to execute arbitrary code when
handling tar archives.

Version-Release number of selected component (if applicable):
Vim >= 7.0 (possibly older)

How reproducible:
No reproducer

References:

    http://www.rdancer.org/vulnerablevim-tarplugin.v3.html (original report)

Proposed patch 7.2c.002

    http://groups.google.com/group/vim_dev/msg/80882b9ee9293139
    http://ftp.vim.org/pub/vim/unstable/patches/7.2c/7.2c.002

Comment 1 Jan Lieskovsky 2008-09-11 14:01:34 UTC

*** This bug has been marked as a duplicate of bug 451759 ***


Note You need to log in before you can comment on or make changes to this bug.