Absolute Path Traversal in Git - CVE-2019-1351

 

Absolute Path Traversal in Git - CVE-2019-1351

Published: December 10, 2019 / Updated: December 11, 2019


Vulnerability identifier: #VU23500
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-1351
CWE-ID: CWE-36
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to the Git for Visual Studio improperly handles virtual drive paths. A remote attacker can clone a file using a specially crafted path and write arbitrary files and directories to certain locations on a vulnerable system.



Affected software

Git
Amazon Linux AMI
Gentoo Linux
Opensuse
Fedora
libgit2 (Alpine package)
libgit2-1.0 (Alpine package)
git (Alpine package)
git (Ubuntu package)
libgit2
git
Visual Studio

How to mitigate CVE-2019-1351

Install updates from vendor's website.

Git - update to 2.24.1
libgit2 (Alpine package) - update to 0.28.4-r0
libgit2-1.0 (Alpine package) - update to 1.0.1-r1
git (Ubuntu package) - addressed in versions 1:2.7.4-0ubuntu1.7, 1:2.17.1-1ubuntu0.5, 1:2.20.1-2ubuntu1.19.04.1, 1:2.20.1-2ubuntu1.19.10.1
git (Alpine package) - addressed in versions 2.15.4-r0, 2.18.2-r0
libgit2 - update to 0.28.4-1.fc31
git - addressed in versions 2.21.1-1.fc30, 2.24.1-1.fc31

External References

Related Security Bulletins