git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Security vulnerability in Git for Cygwin

From
Adam Dinwoodie <adam@dinwoodie.org>
Date
Apr 24, 2021, 21:04 UTC
Message-ID
<CA+kUOamj=PfpHsYB4J9=C48zX75aJ9wAf_LgJqFSee+WyJh68A@mail.gmail.com>
In-Reply-To
<CA+kUOa=juEdBMVr_gyTKjz7PkPt2DZHkXQyzcQmAWCsEHC_ssw@mail.gmail.com>
On Sat, 24 Apr 2021 at 21:32, Adam Dinwoodie <adam@dinwoodie.org> wrote:
Show 28 quoted lines
> I don't typically announce Cygwin releases of Git on this mailing
> list, but this one's for a security vulnerability, and in particular
> I'd like to catch the (hopefully very small number of) people who use
> Git on Cygwin compiling it themselves.
>
> I've just uploaded version 2.31.1-2 of Git to the Cygwin distribution
> server, and it will be being distributed to the Cygwin mirrors over
> the next few hours.
>
> This update addresses CVE-2021-29468, which would cause Git to
> overwrite arbitrary files with attacker-controlled contents when
> checking out content from a malicious repository, and in particular
> would allow an attacker to overwrite Git hooks to execute arbitrary
> code.
>
> Having discussed with the Git security list, I believe there are very
> few people compiling Git on Cygwin themselves, and therefore agreed to
> release the patched Cygwin build without yet having a patch in the
> main Git source code. However if you do use a version of Git on Cygwin
> that isn't from the official Cygwin distribution servers, I'd strongly
> recommend either not checking out or cloning from any untrusted
> repositories until you've applied at least the functional part of the
> patch I'll be submitting shortly.
>
> I'd like to thank RyotaK (https://github.com/Ry0taK /
> https://twitter.com/ryotkak) for finding and responsibly disclosing
> this vulnerability, and Johannes Schindelin for helping manage the
> response.

One note I failed to put in the original email: there is further information on this vulnerability in the GitHub Security Advisory at https://github.com/me-and/Cygwin-Git/security/advisories/GHSA-rmp3-wq55-f557

Previous: Adam Dinwoodie
Message 2 of 2 in “Security vulnerability in Git for Cygwin”
  1. Adam DinwoodieApr 24, 2021
  2. Adam DinwoodieApr 24, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.