cbcvebase.
CVE-2018-17456
published 2018-10-06

CVE-2018-17456: 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…

PriorityP183critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
97.36%
99.9th percentile
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

29 ranges· showing 25
VendorProductVersion rangeFixed in
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debiandebian_linux
debiangit< git 1:2.19.1-1 (bookworm)git 1:2.19.1-1 (bookworm)
git-scmgit>= 2.14.0 < 2.14.52.14.5
git-scmgit>= 2.15.0 < 2.15.32.15.3
git-scmgit>= 2.16.0 < 2.16.52.16.5
git-scmgit>= 2.17.0 < 2.17.22.17.2
git-scmgit>= 2.18.0 < 2.18.12.18.1
git-scmgit>= 2.19.0 < 2.19.12.19.1
gitgit>= 0 < 1:2.19.1-11:2.19.1-1
gitgit>= 0 < 1:2.19.1-11:2.19.1-1
gitgit>= 0 < 1:2.19.1-11:2.19.1-1
gitgit>= 0 < 1:2.19.1-11:2.19.1-1
redhatansible_tower
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux_desktop
redhatenterprise_linux_server

Detection & IOCsextracted from sources · hover to see the quote

filename.gitmodules
commandurl = -u./payload
pathx:x
filenamepayload
commandgit clone --recurse-submodules
commandexecve("/usr/lib/git-core/git", ["/usr/lib/git-core/git", "clone", "--no-checkout", "--progress", "--separate-git-dir", "/tmp/huhu/.git/modules/x:x", "-u./payload", "/tmp/huhu/x:x"],...
  • Inspect cloned repository .gitmodules files for any URL field value beginning with a '-' character, which indicates option injection attempt.
  • Enable git fsck via 'transfer.fsckObjects' to detect malicious repository content (dash-prefixed submodule URLs) during fetch or push operations.
  • Alert on submodule paths containing a colon character (e.g. 'x:x') in .gitmodules, as this is required to bypass local transport checks and enable payload execution.
  • Detect git clone subprocess invocations where a '-u' flag (uploadpack override) appears in argument list, originating from a .gitmodules URL field.
  • Monitor for Metasploit module 'exploits/multi/http/git_submodule_url_exec' activity — it stands up a malicious HTTP git server to serve the crafted superproject.
  • ·Exploitation on Windows (native) is blocked because colon characters are forbidden in path names; however, Git running under WSL or Cygwin on Windows remains exploitable.
  • ·OpenShift Container Platform source-to-image is impacted because it uses the git client packaged with RHEL7 container images; OCP 3.6 and earlier run source-to-image in a privileged container, increasing severity.

CVSS provenance

nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.