Use of Incorrectly-Resolved Name or Reference in libgit2 - CVE-2020-12279
Published: February 7, 2024
Vulnerability identifier: #VU86204
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-12279
CWE-ID: CWE-706
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to compromise the affected system.
The vulnerability exists due to improper handling of equivalent filenames that exist because of NTFS short names in checkout.c. A remote attacker can trick the victim into cloning a specially crafted repository and execute arbitrary code on the system.Affected software
libgit2
Ubuntu
openEuler
libgit2-26 (Ubuntu package)
libgit2-24 (Ubuntu package)
libgit2
libgit2-debuginfo
libgit2-debugsource
libgit2-devel
libgit2-28 (Ubuntu package)
libgit2-1.1 (Ubuntu package)
libgit2-1.5 (Ubuntu package)
Ubuntu
openEuler
libgit2-26 (Ubuntu package)
libgit2-24 (Ubuntu package)
libgit2
libgit2-debuginfo
libgit2-debugsource
libgit2-devel
libgit2-28 (Ubuntu package)
libgit2-1.1 (Ubuntu package)
libgit2-1.5 (Ubuntu package)
How to mitigate CVE-2020-12279
Install updates from vendor's website.
libgit2 - addressed in versions 0.28.4, 0.99.0
libgit2-26 (Ubuntu package) - update to Ubuntu Pro
libgit2-24 (Ubuntu package) - update to Ubuntu Pro
libgit2 - update to 0.27.8-5
libgit2-debuginfo - update to 0.27.8-5
libgit2-debugsource - update to 0.27.8-5
libgit2-devel - update to 0.27.8-5
libgit2-28 (Ubuntu package) - update to 0.28.4+dfsg.1-2ubuntu0.1
libgit2-1.1 (Ubuntu package) - update to 1.1.0+dfsg.1-4.1ubuntu0.1
libgit2-1.5 (Ubuntu package) - update to 1.5.1+ds-1ubuntu1.1
libgit2-26 (Ubuntu package) - update to Ubuntu Pro
libgit2-24 (Ubuntu package) - update to Ubuntu Pro
libgit2 - update to 0.27.8-5
libgit2-debuginfo - update to 0.27.8-5
libgit2-debugsource - update to 0.27.8-5
libgit2-devel - update to 0.27.8-5
libgit2-28 (Ubuntu package) - update to 0.28.4+dfsg.1-2ubuntu0.1
libgit2-1.1 (Ubuntu package) - update to 1.1.0+dfsg.1-4.1ubuntu0.1
libgit2-1.5 (Ubuntu package) - update to 1.5.1+ds-1ubuntu1.1
External References
- https://github.com/libgit2/libgit2/releases/tag/v0.28.4
- https://github.com/libgit2/libgit2/commit/64c612cc3e25eff5fb02c59ef5a66ba7a14751e4
- https://github.com/libgit2/libgit2/releases/tag/v0.99.0
- https://github.com/git/git/security/advisories/GHSA-589j-mmg9-733v
- https://lists.debian.org/debian-lts-announce/2022/03/msg00031.html
- https://lists.debian.org/debian-lts-announce/2023/02/msg00034.html