libgit2: Privilege Escalation Vulnerability — GLSA 202401-17

A vulnerability has been found in libgit2 which could result in privilege escalation.

Affected packages

dev-libs/libgit2 on all architectures
Affected versions < 1.4.4
Unaffected versions >= 1.4.4

Background

libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API.

Description

A vulnerability has been discovered in libgit2. Please review the CVE identifier referenced below for details.

Impact

Usages of a malicious crafted Git repository could allow the creator of the repository to elevate privileges to those of the user accessing the repository.

Workaround

Administrators can ensure that their usages of libgit2 only interact with repositories which have only been modified by trusted users.

Resolution

All libgit2 users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-libs/libgit2-1.4.4"
 

References

Release date
January 14, 2024

Latest revision
January 14, 2024: 1

Severity
normal

Exploitable
local

Bugzilla entries