Path traversal in Git - CVE-2019-1348
Published: December 12, 2019
Vulnerability details
The vulnerability allows a remote attacker to perform directory traversal attacks.
The vulnerability exists due to input validation error when the export-marks option of git fast-import is exposed also via the in-stream command feature. A remote attacker can send a specially crafted HTTP request and overwrite arbitrary paths on the system.
Affected software
Arch Linux
Gentoo Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Opensuse
Fedora
libgit2 (Alpine package)
libgit2-1.0 (Alpine package)
git (Alpine package)
git (Ubuntu package)
git (Debian package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
libgit2
git
Red Hat Software Collections
How to mitigate CVE-2019-1348
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 (Debian package) - addressed in versions 1:2.11.0-3+deb9u5, 1:2.20.1-2+deb10u1
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
- Debian update for git
- Ubuntu update for Git
- Multiple vulnerabilities in Git
- Arch Linux update for git
- Arch Linux update for libgit2
- Red Hat update for git
- Red Hat update for rh-git218-git
- OpenSUSE Linux update for git
- Red Hat update for git
- Gentoo update for Git
- Gentoo update for libgit2
- OpenSUSE Linux update for git
- Path traversal in git (Alpine package)
- Path traversal in libgit2 (Alpine package)
- Path traversal in libgit2-1.0 (Alpine package)
- Fedora 30 update for git
- Fedora 31 update for git
- Fedora 31 update for libgit2