CVEfocus › CVE database › CVE-2018-17456

CVE-2018-17456

CVSS 9.8 CriticalEPSS 97.4% (in the top 1% of all CVEs)Published 2018-10-06Updated 2024-08-05Assigner: mitre

Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows remote code execution during processing of a recursive "git clone" of a superproject if a .gitmodules file has a URL field beginning with a '-' character.

What to do

Likely to be exploited: EPSS gives a 97% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

56Fixed
15Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04gitFixed1:2.17.1-1ubuntu0.3UBUNTU-CVE-2018-17456
Ubuntu 16.04gitFixed1:2.7.4-0ubuntu1.5UBUNTU-CVE-2018-17456
Ubuntu 14.04gitFixed1:1.9.1-1ubuntu0.9UBUNTU-CVE-2018-17456
Debian 14gitFixed1:2.19.1-1DEBIAN-CVE-2018-17456
Debian 13gitFixed1:2.19.1-1DEBIAN-CVE-2018-17456
Debian 12gitFixed1:2.19.1-1DEBIAN-CVE-2018-17456
Red Hat Enterprise Linux 8gitNot affected
Red Hat Enterprise Linux 8git-allNot affected
Red Hat Enterprise Linux 8git-coreNot affected
Red Hat Enterprise Linux 8git-core-docNot affected
Red Hat Enterprise Linux 8git-credential-libsecretNot affected
Red Hat Enterprise Linux 8git-daemonNot affected
Red Hat Enterprise Linux 8git-emailNot affected
Red Hat Enterprise Linux 8git-guiNot affected
Red Hat Enterprise Linux 8git-instawebNot affected
Red Hat Enterprise Linux 8git-subtreeNot affected
Red Hat Enterprise Linux 8git-svnNot affected
Red Hat Enterprise Linux 8gitkNot affected
Red Hat Enterprise Linux 8gitwebNot affected
Red Hat Enterprise Linux 8perl-GitNot affected
Red Hat Enterprise Linux 8perl-Git-SVNNot affected
Red Hat Enterprise Linux 7emacs-gitFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7emacs-git-elFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7gitFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-allFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-bzrFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-cvsFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-daemonFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-emailFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-gnome-keyringFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-guiFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-hgFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-instawebFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-p4Fixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7git-svnFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7gitkFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7gitwebFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7perl-GitFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 7perl-Git-SVNFixed0:1.8.3.1-20.el7RHSA-2018:3408
Red Hat Enterprise Linux 6emacs-gitFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6emacs-git-elFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6gitFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6git-allFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6git-cvsFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6git-daemonFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6git-emailFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6git-guiFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6git-svnFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6gitkFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6gitwebFixed0:1.7.1-10.el6_10RHSA-2020:0316
Red Hat Enterprise Linux 6perl-GitFixed0:1.7.1-10.el6_10RHSA-2020:0316
Alpine Linux 3.24gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.23gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.22gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.21gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.20gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.19gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.18gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.17gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.16gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.15gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.14gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.13gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.12gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.11gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.10gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.9gitFixed2.19.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.8gitFixed2.18.1-r0ALPINE-CVE-2018-17456
Alpine Linux 3.7gitFixed2.15.3-r0ALPINE-CVE-2018-17456
Alpine Linux 3.6gitFixed2.13.7-r1ALPINE-CVE-2018-17456
Alpine Linux 3.5gitFixed2.11.3-r2ALPINE-CVE-2018-17456

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.