#VU11082 Man-in-the-middle attack in Git


Published: 2018-03-14 | Updated: 2020-12-28

Vulnerability identifier: #VU11082

Vulnerability risk: High

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

CVE-ID: CVE-2018-1000021

CWE-ID: CWE-300

Exploitation vector: Network

Exploit availability: No

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

Vendor: Git

Description
The vulnerability allows a remote unauthenticated attacker to execute arbitrary code on the target system.

The weakness exists due to insufficient validation of messages received from a Git server, which could include ANSI escape codes to the terminal on affected Git clients. A remote attacker can trick the victim into sending a request and interact with a malicious Git server and execute arbitrary code.

Mitigation
Install update from vendor's website.

Vulnerable software versions

Git: 2.10.0 - 2.10.5, 2.11.0 - 2.11.4, 2.12.0 - 2.12.4, 2.13.0 - 2.13.6, 2.14.0 - 2.14.2


External links
http://public-inbox.org/git/20180205204312.GB104086@aiede.svl.corp.google.com/


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