Bug 1653143 (CVE-2018-19486)

Summary: CVE-2018-19486 git: Improper handling of PATH allows for commands to be executed from the current directory
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: abhgupta, amahdal, besser82, c.david86, chrisw, dbaker, hhorak, jokerman, jorton, mplch, pcahyna, pstodulk, sthangav, tmz, trankin
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: git 2.19.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-11 15:43:32 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: 1653144, 1653534, 1653538, 1653539    
Bug Blocks: 1653150    

Description Sam Fowler 2018-11-26 04:35:45 UTC
Git before 2.19.2 on Linux and UNIX executes commands from the current working directory (as if '.' were at the end of $PATH) in certain cases involving the run_command() API and run-command.c, because there was a dangerous change from execvp to execv during 2017.


Upstream Patch:

https://git.kernel.org/pub/scm/git/git.git/commit/?id=321fd823


Reference:

https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/RelNotes/2.19.2.txt

Comment 1 Sam Fowler 2018-11-26 04:36:21 UTC
Created git tracking bugs for this issue:

Affects: epel-all [bug 1653145]
Affects: fedora-all [bug 1653144]

Comment 5 Pavel Cahyna 2018-11-27 10:20:29 UTC
The change in question (e3a434468f) appeared first in 2.13.2 and 2.14.

Comment 7 errata-xmlrpc 2018-12-10 08:11:29 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2018:3800 https://access.redhat.com/errata/RHSA-2018:3800