CVE-2018-17456 in git-scm git

The LogPulse agent checks every host for the vulnerable version of this software, so you see where the CVE is present.

What the vulnerability is

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.

Affected software: git-scm git, redhat ansible tower, redhat enterprise linux, redhat enterprise linux desktop, redhat enterprise linux server, redhat enterprise linux server aus, redhat enterprise linux server eus, redhat enterprise linux server tus, redhat enterprise linux workstation, canonical ubuntu linux

Scores

What LogPulse has for it

How to mitigate it

Upgrade Git to 2.19.1 or a later maintained release (CVE-2018-17456)

Patch or upgrade. Upgrades Git so a crafted .gitmodules URL can no longer pass options to the clone command during a recursive clone and run code on the developer machine or build server.

Applies to: 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.

  1. Find hosts with Git (Git for Windows via the agent sensor git-cve-2018-17456, git packages on Linux build agents).
  2. Upgrade to Git 2.19.1, 2.18.1, 2.17.2, 2.16.5, 2.15.3, 2.14.5 or any current release (Git for Windows via its updater or winget Git.Git; Linux via the package manager).
  3. Rerun the vulnerability scan and confirm CVE-2018-17456 is no longer reported.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse