{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-1387 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2019-1387 is a high-severity command injection vulnerability in Microsoft Corporation Git, published on 18 Dec 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2019-1387 and fix it if it is affected.\n\nWhat it is: CVE-2019-1387 is a high-severity command injection vulnerability in Microsoft Corporation Git, published on 18 Dec 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2019-1387 in the wild and no public exploit code.\n\nAffected product: Microsoft Corporation Git. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-1387/ (Markdown: https://insights.sbomify.com/CVE-2019-1387/index.md)","id":"CVE-2019-1387","markdown":"https://insights.sbomify.com/CVE-2019-1387/index.md","name":"CVE-2019-1387","record":{"aliases":["ALPINE-CVE-2019-1387","CLEANSTART-2026-LI11422","DEBIAN-CVE-2019-1387","GHSA-9mhc-h3vf-83fw","RHSA-2020:0124","UBUNTU-CVE-2019-1387"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Git version control","requires_auth":"none","summary":"Attackers can achieve remote code execution via targeted attacks on recursive clones due to lax submodule name validation in Git.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"git","vendor":"git-scm"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"An issue was found in Git before v2.24.1, v2.23.1, v2.22.2, v2.21.1, v2.20.2, v2.19.3, v2.18.2, v2.17.3, v2.16.6, v2.15.4, and v2.14.6. Recursive clones are currently affected by a vulnerability that is caused by too-lax validation of submodule names, allowing very targeted attacks via remote code execution in recursive clones.","ecosystems":["Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Command injection in Git","id":"CVE-2019-1387","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2019"},"n_packages":76,"n_references":13,"next":{"headline":"Microsoft Windows Certificate Dialog Privilege Escalation","id":"CVE-2019-1388"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-bzr","purl":"pkg:rpm/redhat/git-bzr","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/redhat/git-daemon","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-debuginfo","purl":"pkg:rpm/redhat/git-debuginfo","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/redhat/git-email","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-gnome-keyring","purl":"pkg:rpm/redhat/git-gnome-keyring","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/redhat/git-gui","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-hg","purl":"pkg:rpm/redhat/git-hg","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-instaweb","purl":"pkg:rpm/redhat/git-instaweb","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-p4","purl":"pkg:rpm/redhat/git-p4","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/redhat/git-svn","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/redhat/gitk","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/redhat/gitweb","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/redhat/perl-Git","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"perl-Git-SVN","purl":"pkg:rpm/redhat/perl-Git-SVN","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git","purl":"pkg:rpm/redhat/git","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-all","purl":"pkg:rpm/redhat/git-all","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-bzr","purl":"pkg:rpm/redhat/git-bzr","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-cvs","purl":"pkg:rpm/redhat/git-cvs","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-daemon","purl":"pkg:rpm/redhat/git-daemon","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-debuginfo","purl":"pkg:rpm/redhat/git-debuginfo","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-email","purl":"pkg:rpm/redhat/git-email","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-gnome-keyring","purl":"pkg:rpm/redhat/git-gnome-keyring","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-gui","purl":"pkg:rpm/redhat/git-gui","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-hg","purl":"pkg:rpm/redhat/git-hg","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-instaweb","purl":"pkg:rpm/redhat/git-instaweb","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-p4","purl":"pkg:rpm/redhat/git-p4","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"git-svn","purl":"pkg:rpm/redhat/git-svn","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"gitk","purl":"pkg:rpm/redhat/gitk","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"gitweb","purl":"pkg:rpm/redhat/gitweb","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"perl-Git","purl":"pkg:rpm/redhat/perl-Git","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"perl-Git-SVN","purl":"pkg:rpm/redhat/perl-Git-SVN","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"emacs-git","purl":"pkg:rpm/redhat/emacs-git","source":"RHSA-2020:0124"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.3.1-21.el7_7"],"introduced":["0"],"last_affected":[],"package":"emacs-git-el","purl":"pkg:rpm/redhat/emacs-git-el","source":"RHSA-2020:0124"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2019-1386"},"products":["Git"],"published":"2019-12-18","related":[{"cvss_score":9.8,"headline":"gitattributes parsing integer overflow in git","id":"CVE-2022-23521","kev_date_added":null,"published":"2023-01-17"},{"cvss_score":9.8,"headline":"Integer overflow in `git archive`, `git log --format` leading to RCE in git","id":"CVE-2022-41903","kev_date_added":null,"published":"2023-01-17"},{"cvss_score":9.8,"headline":"Security feature bypass in Git","id":"CVE-2019-1353","kev_date_added":null,"published":"2020-01-24"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-2315","kev_date_added":null,"published":"2016-04-08"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-2324","kev_date_added":null,"published":"2016-04-08"},{"cvss_score":8.8,"headline":"Command injection in n/a","id":"CVE-2017-1000117","kev_date_added":null,"published":"2017-10-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["Microsoft Corporation"]},"summary":"Attackers can achieve remote code execution via targeted attacks on recursive clones due to lax submodule name validation in Git.","url":"https://insights.sbomify.com/CVE-2019-1387/"}