Related Vulnerabilities: CVE-2018-11235  

A security issue has been found in git before 2.17.1. With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs "git clone --recurse-submodules" because submodule "names" are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with "../" in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.

Severity Critical

Remote Yes

Type Arbitrary code execution

Description

A security issue has been found in git before 2.17.1. With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs "git clone --recurse-submodules" because submodule "names" are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with "../" in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.

AVG-711 git 2.17.0-1 2.17.1-1 Critical Fixed

01 Jun 2018 ASA-201806-1 AVG-711 git Critical multiple issues

https://lkml.org/lkml/2018/5/29/889