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

Re: status on security of embedded repos?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 5, 2022, 10:21 UTC
Message-ID
<6sq30r84-1s65-91n4-5qoq-23s9q433sno1@tzk.qr>
In-Reply-To
<4e9ad5486e8a887f1e92cc4e401ca61be5f2bb9a.camel@scientia.org>
Hi Chris,
On Sat, 3 Sep 2022, Christoph Anton Mitterer wrote:
Show 10 quoted lines
> A while ago there was this discussion about security issues with
> respect to bare repos embedded in another repo[0][1].
>
>
> I just wondered what's the status on this? Was that fixed in a way that
> one can clone untrusted repos and navigate / use git commands within
> them, without any risk… or is it still open?
>
> Saw proposed patches like:
> https://lore.kernel.org/git/pull.1261.git.git.1651861810633.gitgitgadget@gmail.com/#r

As you can see at the corresponding Pull Request, the patch series has been accepted: https://github.com/git/git/pull/1261#issuecomment-1193004345

If you follow the link to the commit (https://github.com/git/git/commit/18bbc795fc52), you will see that it is not yet in any official tagged version (otherwise you would see the list of tags below the branch name).

This means that it will be part of the next release.

The current timeline for that release can be seen at https://tinyurl.com/gitcal, the projected date for Git v2.38.0 is October 3rd, 2022.

Note: The default will still be at `safe.bareRepository = all`. I foresee
myself setting this to `explicit` via my user-wide configuration.
Potentially a future Git version will add deprecation warnings and an even
more distant Git version might switch the default. This is still up for
discussion, I believe.

Ciao, Johannes

Previous: Christoph Anton MittererNext: Christoph Anton Mitterer
Message 2 of 8 in “status on security of embedded repos?”
  1. Christoph Anton MittererSep 3, 2022
  2. Johannes SchindelinSep 5, 2022
  3. Christoph Anton MittererSep 5, 2022
  4. Johannes SchindelinSep 6, 2022
  5. Christoph Anton MittererSep 7, 2022
  6. Glen ChooSep 8, 2022
  7. Christoph Anton MittererSep 9, 2022
  8. Christoph Anton MittererSep 9, 2022

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.