Skip to content

libgit2 v1.4.3

Compare
Choose a tag to compare
@ethomson ethomson released this 12 Apr 20:23
· 41 commits to maint/v1.4 since this release
465bbf8

馃敀 This is a security release to provide compatibility with git's changes to address CVE 2022-24765.

libgit2 is not directly affected by this vulnerability, because libgit2 does not directly invoke any executable. But we are providing these changes as a security release for any users that use libgit2 for repository discovery and then also use git on that repository. In this release, we will now validate that the user opening the repository is the same user that owns the on-disk repository. This is to match git's behavior.

In addition, we are providing several correctness fixes where invalid input can lead to a crash. These may prevent possible denial of service attacks. At this time there are not known exploits to these issues.

Full list of changes:

  • Validate repository directory ownership (v1.4) by @ethomson in #6267
  • midx: Fix an undefined behavior (left-shift signed overflow) by @lhchavez in #6260
  • fetch: support OID refspec without dst by @ethomson in #6251
  • Fix crash when regenerating a patch with unquoted spaces in filename by @jorio in #6244

All users of the v1.4 release line are recommended to upgrade.

Full Changelog: v1.4.2...v1.4.3