OS Command Injection in Git - CVE-2019-19604

 

OS Command Injection in Git - CVE-2019-19604

Published: December 12, 2019


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

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to a "git submodule update" operation can run commands found in the ".gitmodules" file of a malicious repository. A remote unauthenticated attacker can execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Git
Gentoo Linux
Arch Linux
Opensuse
Fedora
git (Ubuntu package)
git (Debian package)
git (Alpine package)
git
Pivotal Concourse

How to mitigate CVE-2019-19604

Install updates from vendor's website.

Git - addressed in versions 2.20.2, 2.21.1, 2.22.2, 2.23.1, 2.24.1
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) - update to 2.22.2-r0
Pivotal Concourse - addressed in versions 5.2.6, 5.5.7
git - addressed in versions 2.21.1-1.fc30, 2.24.1-1.fc31

External References

Related Security Bulletins