Bug 456647 (CVE-2008-3294)

Summary: CVE-2008-3294 vim: insecure temporary file usage in configure script
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: karsten
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-3294
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-25 09:24:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Hoger 2008-07-25 09:14:46 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2008-3294 to the following vulnerability:

src/configure.in in Vim 5.0 through 7.1, when used for a build with
Python support, does not ensure that the Makefile-conf temporary file
has the intended ownership and permissions, which allows local users
to execute arbitrary code by writing to this file during a time window
associated with a race condition.

References:
http://www.rdancer.org/vulnerablevim-configure.in.html
http://seclists.org/fulldisclosure/2008/Jul/0312.html
http://secunia.com/advisories/31159

Proposed patch:
http://www.rdancer.org/vulnerablevim-configure.in.patch

Comment 1 Tomas Hoger 2008-07-25 09:24:51 UTC
This issue can only be exploited during the package build and it does not affect
users of pre-built packages distributed with Red Hat Enterprise Linux or Fedora.
Therefore, we do not plan to backport a fix for this issue to already released
version of Red Hat Enterprise Linux.

Additionally, this issue requires an attacker to win a race against build
process, with very short time window for successful attack, giving an attacker a
low chance of success.