git: Improper handling of PATH allows for commands to executed from current directory (CVE-2018-19486)
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.
Fixed In Version:
git 2.19.2
References:
https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/RelNotes/2.19.2.txt
https://nvd.nist.gov/vuln/detail/CVE-2018-19486
Patch:
Fixed by:
https://git.kernel.org/pub/scm/git/git.git/commit/?id=321fd82389742398d2924640ce3a61791fd27d60
Introduced by:
https://git.kernel.org/pub/scm/git/git.git/commit/?id=e3a434468fecca7c14a6bef32050dfa60534fde6
(from redmine: issue id 9710, created on 2018-11-29, closed on 2018-12-04)
- Relations:
- child #9711 (closed)
- child #9712 (closed)
- child #9713 (closed)