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
Created git tracking bugs for this issue: Affects: epel-all [bug 1653145] Affects: fedora-all [bug 1653144]
The change in question (e3a434468f) appeared first in 2.13.2 and 2.14.
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