Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Upgrade to libgit2 v1.3.2 #33

Merged
merged 1 commit into from
Jul 13, 2022
Merged

Upgrade to libgit2 v1.3.2 #33

merged 1 commit into from
Jul 13, 2022

Conversation

pjbgf
Copy link
Member

@pjbgf pjbgf commented Jul 13, 2022

The new version is mostly a security release, with the changes below:

  • This provides compatibility with git's changes to address CVE 2022-29187. As a follow up to CVE 2022-24765, now not only is the working directory of a non-bare repository examined for its ownership, but the .git directory and the .git file (if present) are also examined for their ownership.

  • A fix for compatibility with git's (new) behavior for CVE 2022-24765 allows users on POSIX systems to access a git repository that is owned by them when they are running in sudo.

  • A fix for further compatibility with git's (existing) behavior for CVE 2022-24765 allows users on Windows to access a git repository that is owned by the Administrator when running with escalated privileges (using runas Administrator).

  • The bundled zlib is updated to v1.2.12, as prior versions had memory corruption bugs. It is not known that there is a security vulnerability in libgit2 based on these bugs, but we are updating to be cautious.

Extract from upstream release: https://github.com/libgit2/libgit2/releases/tag/v1.3.2

The new version is mostly a security release, with the changes below:
- This provides compatibility with git's changes to address CVE 2022-29187. As a follow up to CVE 2022-24765, now not only is the working directory of a non-bare repository examined for its ownership, but the .git directory and the .git file (if present) are also examined for their ownership.

- A fix for compatibility with git's (new) behavior for CVE 2022-24765 allows users on POSIX systems to access a git repository that is owned by them when they are running in sudo.

- A fix for further compatibility with git's (existing) behavior for CVE 2022-24765 allows users on Windows to access a git repository that is owned by the Administrator when running with escalated privileges (using runas Administrator).

- The bundled zlib is updated to v1.2.12, as prior versions had memory corruption bugs. It is not known that there is a security vulnerability in libgit2 based on these bugs, but we are updating to be cautious.

https://github.com/libgit2/libgit2/releases/tag/v1.3.2
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
@pjbgf pjbgf requested a review from aryan9600 July 13, 2022 08:06
Copy link
Member

@aryan9600 aryan9600 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thanks @pjbgf 🙇

@pjbgf pjbgf merged commit 2c42e5d into fluxcd:main Jul 13, 2022
@pjbgf pjbgf deleted the libgit2-1.3.2 branch July 13, 2022 08:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants