Skip to content
IJK

Git's Six Security Fixes: The Announcement's Own Words

By IJK ·

The Git project released new versions to address six security vulnerabilities. This piece restates what the announcement says about them, the fixed versions and the precautions.

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]

Install a patched versionthe most effective way to protectClone only from trusted serversa precautionAvoid merging untrusted content or tagsa precautionAvoid untrusted binary patches or fast-importstreamsa precautionPrecautions do not replace installing thefixesthe announcement's own limit
Which route does the announcement call the most effective, and what does it say the precautions do not do?

Sources

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. The GitHub announcement of the Git security release says: A malicious server can supply a name containing path-traversal components. Git security vulnerabilities announced
  9. 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
  10. The GitHub announcement of the Git security release says: Git now validates the advertised target before accepting it. Git security vulnerabilities announced
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. The GitHub announcement of the Git security release says: These precautions do not replace installing the fixes. Git security vulnerabilities announced

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • git
  • security
  • vulnerabilities
  • patching