Git Security in Short
Git flaws usually need you to clone or work with a repository an attacker made: a malicious submodule or crafted path can run code on the machine doing the cloning. That makes build servers and CI runners, which clone many repositories automatically, the places to watch.
How to Keep Git Patched
- Update Git on servers, CI runners and developer laptops alike:
git --versionshows what you have. - Be careful with
--recurse-submoduleson repositories you don't trust. - Build images for CI carry their own Git; rebuild them after a fix.