What the announcement covers
Today, the Git project is releasing new versions to address six security vulnerabilities. [1]
These include arbitrary code execution when recursively cloning a malicious repository, writes to unintended files, and memory corruption when processing merges or binary patches. [2]
Where the fixes are
The fixes are included in Git 2.56.1, with backports to Git 2.55.1, 2.54.1, 2.53.1, 2.52.1, 2.51.3, and 2.50.2. [3]
We recommend updating to Git 2.56.1 or the patched release for your maintenance series, and updating any applications that bundle Git. [4]
Update Git Updating is the most effective way to protect against these vulnerabilities. [5]
Install a patched version from your operating system or Git distributor, and update applications that include their own copy of Git. [6]
What the announcement says about each vulnerability
When Git subsequently uses that directory, it can execute attacker-controlled code during a recursive clone. [7]
A malicious server can supply a name containing path-traversal components. [8]
With the files reference backend, a later operation that updates the branch can write outside the intended reference directory. [9]
Git now validates the advertised target before accepting it. [10]
A specially crafted message containing more than two signatures can cause Git to write past the end of a fixed-size stack array. [11]
This can be triggered by merging a tag containing more than two signatures, causing memory corruption and a potential denial of service. [12]
However, this check only considered the size of the patch as supplied. [13]
If you cannot update at once
If you cannot update immediately, clone only from trusted servers and avoid recursive clones of untrusted repositories. [14]
Avoid merging untrusted content or tags, or processing binary patches or fast-import streams from untrusted sources. [15]
These precautions do not replace installing the fixes. [16]
Sources
- The GitHub announcement of the Git security release says: Today, the Git project is releasing new versions to address six security vulnerabilities. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: These include arbitrary code execution when recursively cloning a malicious repository, writes to unintended files, and memory corruption when processing merges or binary patches. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: The fixes are included in Git 2.56.1, with backports to Git 2.55.1, 2.54.1, 2.53.1, 2.52.1, 2.51.3, and 2.50.2. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: We recommend updating to Git 2.56.1 or the patched release for your maintenance series, and updating any applications that bundle Git. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: Update Git Updating is the most effective way to protect against these vulnerabilities. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: Install a patched version from your operating system or Git distributor, and update applications that include their own copy of Git. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: When Git subsequently uses that directory, it can execute attacker-controlled code during a recursive clone. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: A malicious server can supply a name containing path-traversal components. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: With the files reference backend, a later operation that updates the branch can write outside the intended reference directory. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: Git now validates the advertised target before accepting it. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: A specially crafted message containing more than two signatures can cause Git to write past the end of a fixed-size stack array. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: This can be triggered by merging a tag containing more than two signatures, causing memory corruption and a potential denial of service. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: However, this check only considered the size of the patch as supplied. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: If you cannot update immediately, clone only from trusted servers and avoid recursive clones of untrusted repositories. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: Avoid merging untrusted content or tags, or processing binary patches or fast-import streams from untrusted sources. Git security vulnerabilities announced
- The GitHub announcement of the Git security release says: These precautions do not replace installing the fixes. Git security vulnerabilities announced