cve.bz

CVE-2018-17456 Argument Injection

9.8 criticalExploitEPSS 97%Fix available

Critical (9.8). EPSS 97% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
97% (unchanged from 97% a week ago; 97% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-17456 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-17456?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-17456?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-17456 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
git-scm:gitfrom 2.14.0 before 2.14.5
git-scm:gitfrom 2.15.0 before 2.15.3
git-scm:gitfrom 2.16.0 before 2.16.5
git-scm:gitfrom 2.17.0 before 2.17.2
git-scm:gitfrom 2.18.0 before 2.18.1
git-scm:gitfrom 2.19.0 before 2.19.1
redhat:ansible_tower3.3
redhat:enterprise_linux6.0
redhat:enterprise_linux6.7
redhat:enterprise_linux7.0
redhat:enterprise_linux7.3
redhat:enterprise_linux7.4
redhat:enterprise_linux7.5
redhat:enterprise_linux7.6
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_workstation7.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8git1:2.1.4-2.1+deb8u7DLA-1533-1
Debian9git1:2.11.0-3+deb9u4DSA-4311-1
Debian12, 13, 14git1:2.19.1-1DEBIAN-CVE-2018-17456
Ubuntu14.04:LTSgit1:1.9.1-1ubuntu0.9UBUNTU-CVE-2018-17456 USN-3791-1
Ubuntu16.04:LTSgit1:2.7.4-0ubuntu1.5UBUNTU-CVE-2018-17456 USN-3791-1
Ubuntu18.04:LTSgit1:2.17.1-1ubuntu0.3UBUNTU-CVE-2018-17456 USN-3791-1
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moregit, gitk, gitweb and 10 more0:1.7.1-10.el6_10RHSA-2020:0316
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moregit, gitk, git-hg and 16 more0:1.8.3.1-20.el7RHSA-2018:3408
Red Hatrhel_software_collections:3::el6rh-git29-git, rh-git29-gitk, rh-git29-git-p4 and 14 more0:2.9.3-7.el6RHSA-2018:3541
Red Hatrhel_software_collections:3::el7rh-git29-git, rh-git29-gitk, rh-git29-git-p4 and 12 more0:2.9.3-8.el7RHSA-2018:3541
SUSEEnterprise Storage 4, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP1-LTSS and 9 moregit2.12.3-27.17.2SUSE-SU-2018:4088-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Development Tools 15git2.16.4-3.6.1SUSE-SU-2018:3150-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Development Tools 15 SP1git2.26.1-3.25.2SUSE-SU-2020:1121-1
SUSELinux Enterprise Module for Development Tools 15libgit20.26.8-3.8.1SUSE-SU-2018:4009-1
SUSELinux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4, Linux Enterprise Software Development Kit 12 SP4git2.12.3-27.17.2SUSE-SU-2018:4088-3
SUSELinux Enterprise Server for SAP Applications 12 SP1git2.12.3-27.17.2SUSE-SU-2018:4088-2
openSUSELeap 15.1git2.26.1-lp151.4.9.1openSUSE-SU-2020:0598-1
openSUSETumbleweedgit2.33.0-1.3openSUSE-SU-2024:10786-1
openSUSETumbleweedlibgit21.1.1-1.2openSUSE-SU-2024:10943-1
Alpinev3.5git2.11.3-r2ALPINE-CVE-2018-17456
Alpinev3.6git2.13.7-r1ALPINE-CVE-2018-17456
Alpinev3.7git2.15.3-r0ALPINE-CVE-2018-17456
Alpinev3.8git2.18.1-r0ALPINE-CVE-2018-17456
Alpinev3.9, v3.10, v3.11 and 13 moregit2.19.1-r0ALPINE-CVE-2018-17456

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

OpenShift Container Platform (OCP) source-to-image uses the git client packaged with the OCP container images. Since RHEL7 and its associated images are impacted, source-to-image is also impacted. The atomic-openshift package running on the masters controls the code that determines the source-to-image build image in use, therefore a cluster update is required to patch this issue. Full instructions will be provided in Security Errata provided for this issue.

In OCP 3.6 and earlier, source-to-image executes in a privileged container on the node. Therefore the severity of this CVE is important for these versions. OCP 3.7 and later execute source-to-image git pulls in an unprivileged init container.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6git-0:1.7.1-10.el6_10Fixed 2020-02-03RHSA-2020:0316
Red Hat Enterprise Linux 7git-0:1.8.3.1-20.el7Fixed 2018-10-30RHSA-2018:3408
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-git29-git-0:2.9.3-7.el6Fixed 2018-11-13RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-git29-git-0:2.9.3-7.el6Fixed 2018-11-13RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-git29-git-0:2.9.3-8.el7Fixed 2018-11-13RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSrh-git29-git-0:2.9.3-8.el7Fixed 2018-11-13RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-git29-git-0:2.9.3-6.el7Fixed 2018-11-13RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-git29-git-0:2.9.3-6.el7Fixed 2018-11-13RHSA-2018:3541
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-git29-git-0:2.9.3-8.el7Fixed 2018-11-13RHSA-2018:3541
Red Hat Enterprise Linux 8gitNot affected
Red Hat Fuse 7camelAffected
Red Hat JBoss Fuse 6camelAffected
Red Hat JBoss Fuse Integration Service 2camelAffected
Red Hat Mobile Application Platform 4fh-scmNot affected
Red Hat Software Collectionsrh-git218-gitNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-17456.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON