# CVE-2019-1387: Git for Visual Studio Remote Code Execution Vulnerability

CVE-2019-1387 is fixed in 20 products on 1 platform, first by git 1:2.17.1-1ubuntu0.5, released December 10, 2019. It is not reported as exploited. Patch Radar priority: Urgent.

- Web page: https://patchblox.com/security/cve/CVE-2019-1387
- Priority: Urgent
- CVSS: 8.8 (Critical)
- EPSS: 0.0443
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Vendor exploitability assessment: Exploitation Less Likely
- Published: Dec 10, 2019
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2019-1387

## Description

<p>A remote code execution vulnerability exists when Git for Visual Studio improperly sanitizes input. An attacker who successfully exploited this vulnerability could take control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights.</p> <p>To exploit the vulnerability, an attacker would first need to convince the user to clone a malicious repo.</p> <p>The security update addresses the vulnerability by correcting how Git for Visual Studio validates command-line input.</p>

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | git Debian 11.6 (bullseye) | 1:2.30.2-1+deb11u3 | [DLA-3867-1](https://patchblox.com/security/data/fix/linux/dla-3867-1.md) | Sep 3, 2024 |
| Linux | git RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-all RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-all Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-all 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-all-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-all ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-core RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-core ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-core-doc RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-core-doc ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-cvs Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-cvs 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-cvs-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-daemon RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-daemon ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-daemon-run Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-daemon-run 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-daemon-run-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-daemon-sysvinit Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-daemon-sysvinit 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-daemon-sysvinit-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-el Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-el 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-el-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-email RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-email Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-email 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-email-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-email ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-gui RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-gui Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-gui 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-gui-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-gui ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-instaweb RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-instaweb ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-man Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-man 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-man-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-mediawiki Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-mediawiki 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-mediawiki-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-subtree RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-subtree ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-svn RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | git-svn Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [git-svn 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-git-svn-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | git-svn ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | gitk RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | gitk Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [gitk 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-gitk-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | gitk ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | gitweb RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | gitweb Ubuntu 18.04.6 LTS (bionic) | 1:2.17.1-1ubuntu0.5 | [gitweb 1:2.17.1-1ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-gitweb-1-2.17.1-1ubuntu0.5.md) | Dec 10, 2019 |
| Linux | gitweb ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | perl-Git RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | perl-Git ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |
| Linux | perl-Git-SVN RHEL 8 | 0:2.18.2-1.el8_1 | [RHSA-2019:4356](https://patchblox.com/security/data/fix/linux/rhsa-2019-4356.md) | Dec 19, 2019 |
| Linux | perl-Git-SVN ol 8 | 0:2.18.2-1.el8_1 | [ELSA-2019-4356](https://patchblox.com/security/data/fix/linux/elsa-2019-4356.md) | Dec 19, 2019 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
