libgit2: Multiple vulnerabilities — GLSA 202003-42

Multiple vulnerabilities have been found in libgit2, the worst of which could result in the arbitrary execution of code.

Affected packages

dev-libs/libgit2 on all architectures
Affected versions < 0.28.4
Unaffected versions >= 0.28.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

Multiple vulnerabilities have been discovered in libgit2. Please review the CVE identifiers referenced below for details.

Impact

An attacker could possibly overwrite arbitrary paths, execute arbitrary code, and overwrite files in the .git directory.

Workaround

There is no known workaround at this time.

Resolution

All libgit2 users should upgrade to the latest version:

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

References

Release date
March 19, 2020

Latest revision
March 19, 2020: 1

Severity
normal

Exploitable
local, remote

Bugzilla entries