This security vulnerability can lead to arbitrary code execution when a user operates in a malicious repository.
With a crafted .gitmodules file, the 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.
In case you have installed Git using the system packages, please update the component when the new package is available for your operating system.
If you have any questions about the security issue or how to migrate your data, please post to our community support forum and we will be happy to help!