Use of Incorrectly-Resolved Name or Reference in libgit2 - CVE-2020-12278
Published: February 7, 2024
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 Alternate Data Streams in path.c. A remote attacker can trick the victim into cloning a specially crafted repository and execute arbitrary code on the system.
Affected software
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-12278
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/releases/tag/v0.99.0
- https://github.com/libgit2/libgit2/commit/e1832eb20a7089f6383cfce474f213157f5300cb
- https://github.com/git/git/security/advisories/GHSA-5wph-8frv-58vj
- https://github.com/libgit2/libgit2/commit/3f7851eadca36a99627ad78cbe56a40d3776ed01
- https://lists.debian.org/debian-lts-announce/2022/03/msg00031.html
- https://lists.debian.org/debian-lts-announce/2023/02/msg00034.html