#VU23556 OS Command Injection in Git


Published: 2019-12-12

Vulnerability identifier: #VU23556

Vulnerability risk: High

CVSSv3.1: 8.8 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2019-19604

CWE-ID: CWE-78

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Git
Client/Desktop applications / Software for system administration

Vendor: Git

Description

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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Git: 2.20.0 - 2.20.1, 2.21.0, 2.22.0 - 2.22.1, 2.23.0, 2.24.0


External links
http://gitlab.com/gitlab-com/gl-security/disclosures/blob/master/003_git_submodule/advisory.md
http://public-inbox.org/git/xmqqr21cqcn9.fsf@gitster-ct.c.googlers.com/
http://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.24.1.txt
http://www.debian.org/security/2019/dsa-4581


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability