Skip to content
Fencer Intel
high 8.8

CVE-2019-1387 json

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.

published 6y ago modified 4mo ago also EUVD-2019-9944

cvss
8.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
4.4%
EPSS 4.4% chance of exploitation in 30 days, percentile 91%
public exploits
0
none known

Summary

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.

Patch / fix

  • git git 2,24.1, 2.14.6, 2.15.4, 2.16.6, 2.17.3, 2.18.2, 2.19.3, 2.20.2, 2.21.1, 2.22.2, 2.23.1
  • git Debian 14, Debian 13, Debian 12 1:2.24.0-2

debian advisories DEBIAN-CVE-2019-1387

  • git Ubuntu 16.04 LTS 1:2.7.4-0ubuntu1.7
  • git Ubuntu 18.04 LTS 1:2.17.1-1ubuntu0.5

ubuntu advisories UBUNTU-CVE-2019-1387

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • rh-git218-git RHEL 3 SOFTWARE_COLLECTIONS 2.18.2-1.el7
  • rh-git218-gitk RHEL 3 SOFTWARE_COLLECTIONS 2.18.2-1.el7
  • rh-git218-git-p4 RHEL 3 SOFTWARE_COLLECTIONS 2.18.2-1.el7
  • rh-git218-gitweb RHEL 3 SOFTWARE_COLLECTIONS 2.18.2-1.el7
  • rh-git218-git-all RHEL 3 SOFTWARE_COLLECTIONS 2.18.2-1.el7
  • rh-git218-git-cvs RHEL 3 SOFTWARE_COLLECTIONS 2.18.2-1.el7
  • rh-git218-git-gui RHEL 3 SOFTWARE_COLLECTIONS 2.18.2-1.el7
  • rh-git218-git-svn RHEL 3 SOFTWARE_COLLECTIONS 2.18.2-1.el7

red hat advisories RHSA-2020:0002RHSA-2020:0228RHSA-2019:4356RHSA-2020:0124

  • git SLE Module for Development Tools 15 SP1, SLE Module for Basesystem 15 SP1 2.26.1-3.25.2
  • git SLE Module for Development Tools 15 SP1, SLE Module for Development Tools 15, SLE Module for Basesystem 15 SP1 +1 more 2.16.4-3.17.2
  • perl-Authen-SASL SLE Module for Development Tools 15 SP1, SLE Module for Development Tools 15 2.16-1.3.1
  • perl-Net-SMTP-SSL SLE Module for Development Tools 15 SP1, SLE Module for Development Tools 15 1.04-1.3.1
  • git SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +14 more 2.12.3-27.22.1

suse advisories SUSE-SU-2020:1121-1SUSE-SU-2020:0045-1SUSE-SU-2019:3311-1

  • git openSUSE Tumbleweed 2.33.0-1.3
  • libgit2 openSUSE Tumbleweed 1.1.1-1.2
  • git openSUSE Leap 15.1 2.26.1-lp151.4.9.1
  • git openSUSE Leap 15.1 2.16.4-lp151.4.3.1
  • perl-Authen-SASL openSUSE Leap 15.1 2.16-lp151.3.3.1
  • perl-Net-SMTP-SSL openSUSE Leap 15.1 1.04-lp151.3.3.1

opensuse advisories openSUSE-SU-2024:10786-1openSUSE-SU-2024:10943-1openSUSE-SU-2020:0598-1openSUSE-SU-2020:0123-1

  • git Alpine 3.10 2.22.2-r0
  • git Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 2.24.1-r0
  • git Alpine 3.7 2.15.4-r0
  • git Alpine 3.8 2.18.2-r0
  • git Alpine 3.9 2.20.2-r0
  • libgit2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 0.28.4-r0
  • libgit2-1.0 Alpine 3.14, Alpine 3.13 0.28.4-r0
  • libgit2-1.1 Alpine 3.16, Alpine 3.15 0.28.4-r0

alpine advisories ALPINE-CVE-2019-1387

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • git Arch Linux 2.24.1-1
  • libgit2 Arch Linux 1:0.28.4-1

arch linux advisories AVG-1073AVG-1075

Is CVE-2019-1387 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-1387 updated cvss 7.5

git: Remote code execution in recursive clones with nested submodules

  • Red Hat Enterprise Linux AppStream (v. 8) git 2.18.2-1.el8_1, gitk 2.18.2-1.el8_1, gitweb 2.18.2-1.el8_1, git-all 2.18.2-1.el8_1, git-gui 2.18.2-1.el8_1, git-svn 2.18.2-1.el8_1, +7 more
    fixed: vendor fix “Avoid running `git clone --recurse-submodules` and `git submodule update` with untrusted repositories.” RHSA-2019:4356
  • Red Hat Enterprise Linux AppStream E4S (v. 8.0) git 2.18.2-1.el8_0, gitk 2.18.2-1.el8_0, gitweb 2.18.2-1.el8_0, git-all 2.18.2-1.el8_0, git-gui 2.18.2-1.el8_0, git-svn 2.18.2-1.el8_0, +7 more
    fixed: vendor fix “Avoid running `git clone --recurse-submodules` and `git submodule update` with untrusted repositories.” RHSA-2020:0228
  • Red Hat Enterprise Linux Client Optional (v. 7) git 1.8.3.1-21.el7_7, gitk 1.8.3.1-21.el7_7, git-hg 1.8.3.1-21.el7_7, git-p4 1.8.3.1-21.el7_7, gitweb 1.8.3.1-21.el7_7, git-all 1.8.3.1-21.el7_7, +12 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) git 1.8.3.1-21.el7_7, gitk 1.8.3.1-21.el7_7, git-hg 1.8.3.1-21.el7_7, git-p4 1.8.3.1-21.el7_7, gitweb 1.8.3.1-21.el7_7, git-all 1.8.3.1-21.el7_7, +12 more Red Hat Enterprise Linux Server (v. 7) git 1.8.3.1-21.el7_7, perl-Git 1.8.3.1-21.el7_7 Red Hat Enterprise Linux Server Optional (v. 7) gitk 1.8.3.1-21.el7_7, git-hg 1.8.3.1-21.el7_7, git-p4 1.8.3.1-21.el7_7, gitweb 1.8.3.1-21.el7_7, git-all 1.8.3.1-21.el7_7, git-bzr 1.8.3.1-21.el7_7, +10 more Red Hat Enterprise Linux Workstation (v. 7) git 1.8.3.1-21.el7_7, perl-Git 1.8.3.1-21.el7_7 Red Hat Enterprise Linux Workstation Optional (v. 7) gitk 1.8.3.1-21.el7_7, git-hg 1.8.3.1-21.el7_7, git-p4 1.8.3.1-21.el7_7, gitweb 1.8.3.1-21.el7_7, git-all 1.8.3.1-21.el7_7, git-bzr 1.8.3.1-21.el7_7, +10 more
    fixed: vendor fix “Avoid running `git clone --recurse-submodules` and `git submodule update` with untrusted repositories.” RHSA-2020:0124
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-git218-git 2.18.2-1.el7, rh-git218-gitk 2.18.2-1.el7, rh-git218-git-p4 2.18.2-1.el7, rh-git218-gitweb 2.18.2-1.el7, rh-git218-git-all 2.18.2-1.el7, rh-git218-git-cvs 2.18.2-1.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-git218-git 2.18.2-1.el7, rh-git218-gitk 2.18.2-1.el7, rh-git218-git-p4 2.18.2-1.el7, rh-git218-gitweb 2.18.2-1.el7, rh-git218-git-all 2.18.2-1.el7, rh-git218-git-cvs 2.18.2-1.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-git218-git 2.18.2-1.el7, rh-git218-gitk 2.18.2-1.el7, rh-git218-git-p4 2.18.2-1.el7, rh-git218-gitweb 2.18.2-1.el7, rh-git218-git-all 2.18.2-1.el7, rh-git218-git-cvs 2.18.2-1.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-git218-git 2.18.2-1.el7, rh-git218-gitk 2.18.2-1.el7, rh-git218-git-p4 2.18.2-1.el7, rh-git218-gitweb 2.18.2-1.el7, rh-git218-git-all 2.18.2-1.el7, rh-git218-git-cvs 2.18.2-1.el7, +9 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-git218-git 2.18.2-1.el7, rh-git218-gitk 2.18.2-1.el7, rh-git218-git-p4 2.18.2-1.el7, rh-git218-gitweb 2.18.2-1.el7, rh-git218-git-all 2.18.2-1.el7, rh-git218-git-cvs 2.18.2-1.el7, +9 more
    fixed: vendor fix “Avoid running `git clone --recurse-submodules` and `git submodule update` with untrusted repositories.” RHSA-2020:0002
  • Red Hat Enterprise Linux 6 git, gitk, gitweb, git-all, git-cvs, git-gui, +6 more Red Hat Fuse 7 camel-git camel-git Red Hat JBoss Fuse 6 camel-git camel-git
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2y ago

Exploit prediction

4.43% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected products

  • Microsoft Corporation Git
  • git git

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.