A critical Git security vulnerability was announced yesterday, that affects all versions of the official Git client. Since this is a client-side only vulnerability, GitLab.com, GitLab Community Edition and GitLab Enterprise Edition are not directly affected.
The vulnerability is present on Git and Git-compatible clients that access Git repositories from a case-insensitive or
case-normalizing filesystem. An attacker can create a malicious Git tree that will cause the
.git/config directory to be
overwritten when cloning or checking out a repository. This enables the attacker to execute arbitrary commands in the
client's machine. Git clients running on OS X (HFS+ if not formatted as case-sensitive) or any version of Microsoft
Windows (NTFS, FAT) are exploitable through this vulnerability. Linux clients running in a case-sensitive filesystem
are not affected.
We strongly recommend our users to update their Git clients as soon as possible and to be cautious when cloning repositories from untrusted sources.
The following updated versions of Git address this vulnerability:
The Git core team has announced maintenance releases for all current versions of Git (v188.8.131.52, v1.9.5, v2.0.5, v2.1.4, and v2.2.1).
Please contact us at firstname.lastname@example.org if you have any questions about this issue.
Check out GitLab Enterprise Edition for deep LDAP integration, git hooks, Jenkins integration and many more powerful enterprise features.