Bug 164279 - CAN-2005-2368 vim modeline arbitrary command execution
CAN-2005-2368 vim modeline arbitrary command execution
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: vim (Show other bugs)
4.0
All Linux
medium Severity low
: ---
: ---
Assigned To: Karsten Hopp
David Lawrence
impact=low,public=20050725,reported=2...
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-26 11:27 EDT by Josh Bressers
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version: RHSA-2005-745
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-08-22 10:14:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Demo exploit for this issue (99 bytes, text/plain)
2005-08-10 21:13 EDT, Josh Bressers
no flags Details

  None (edit)
Description Josh Bressers 2005-07-26 11:27:04 EDT
A bug was found in vim which can allow a malicious modeline to execute arbitrary
code.

The initial discovery is here:
http://www.guninski.com/where_do_you_want_billg_to_go_today_5.html

The fix for this issue seems to span two patchsets (the second fixes what the
first misses)
ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.081
ftp://ftp.vim.org/pub/vim/patches/6.3/6.3.082
Comment 1 Josh Bressers 2005-07-26 11:28:28 EDT
This issue should also affects RHEL2.1 and RHEL3
Comment 2 Karsten Hopp 2005-08-10 19:12:14 EDT
I'm not sure about 2.1. Do you really want me to do an RHSA for 2.1 ? 
Comment 3 Josh Bressers 2005-08-10 21:13:01 EDT
Created attachment 117631 [details]
Demo exploit for this issue

If you open this file with vim, it will create the file /tmp/vim-test-1.exec

I just verified it on RHEL2.1, so yes, we'll want to patch that as well.
Comment 4 Red Hat Bugzilla 2005-08-22 10:14:49 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-745.html

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