Bug 1175960 (CVE-2014-9390)

Summary: CVE-2014-9390 git: arbitrary command execution vulnerability on case-insensitive file systems
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: carnil, chrisw, david, dereks, erich, jbowes, jokajak, jrusnack, ooprala, pstodulk, tmz, vdanen, vonsch
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: git 2.2.1, git 2.1.4, git 2.0.5, git 1.9.5, git 1.8.5.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1178856 (view as bug list) Environment:
Last Closed: 2015-01-05 15:02:35 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:
Bug Depends On: 1178856, 1220552    
Bug Blocks:    

Description Vincent Danen 2014-12-19 00:43:34 UTC
It was reported [1] that git, when used as a client on a case-insensitive filesystem (such as FAT, FAT32, NTFS, HFS+, etc.), could allow the overwrite of the .git/config file when the client performed a "git pull".  Because git permitted committing .Git/config (or any case variation), on the pull this would replace the user's .git/config.  If this malicious config file contained defined external commands (such as for invoking and editor or an external diff utility) it could allow for the execution of arbitrary code with the privileges of the user running the git client.

[1] http://article.gmane.org/gmane.linux.kernel/1853266


Statement:

This flaw is only exploitable when the local git repository is stored on a case-insensitive filesystem.  By default, Red Hat Enterprise Linux uses case-sensitive filesystems (such as ext2/3/4, XFS, etc.) and as such is not vulnerable to this flaw.

Comment 1 Petr Stodulka 2014-12-19 15:26:51 UTC
*** Bug 1175959 has been marked as a duplicate of this bug. ***