Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: 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 execution during processing of a recursive "git clone" of a superproject if a .gitmodules file has a URL field beginning with a '-' character.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-17456
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:19 UTC · Revision 1

Source evidence

CVE-2018-17456

core-osv · Original source

Published 6 Oct 2018, 14:29 UTC

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.

osv:CVE-2018-17456
Complete source record
{
  "id": "6752c99bd65605b6c4c1a8182428679f650ee76d532ecc33ab3899e5ae0f21fc",
  "url": "https://osv.dev/vulnerability/CVE-2018-17456",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-17456",
    "summary": "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.",
    "evidence": "osv:CVE-2018-17456",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2018-17456",
      "aliases": [
        "CVE-2018-17456"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/git-for-windows/git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1d4361b0f344188ab5eec6dcea01f61a3a3a1670"
                },
                {
                  "fixed": "cae598d9980661a978e2df4fb338518f7bf09572"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.19.0"
                      },
                      {
                        "fixed": "2.19.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.19.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-17456.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/git/git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4384e3cde2ce8ecd194202e171ae16333d241326"
                },
                {
                  "fixed": "d0832b2847aa9669c09397c5639d7fe56abaf9fc"
                },
                {
                  "introduced": "cb5918aa0d50f50e83787f65c2ddc3dcb10159fe"
                },
                {
                  "fixed": "924c623e1c71b98da608f980a97f9730c021ba44"
                },
                {
                  "introduced": "2512f15446149235156528dafbe75930c712b29e"
                },
                {
                  "fixed": "27d05d1a1a62273aa3749f4d0ab8a126ef11ff66"
                },
                {
                  "introduced": "468165c1d8a442994a825f3684528361727cd8c0"
                },
                {
                  "fixed": "6e9e91e9cae74cd7feb9300563d40361b2b17dd2"
                },
                {
                  "introduced": "53f9a3e157dbbc901a02ac2c73346d375e24978c"
                },
                {
                  "fixed": "268fbcd172cdb306e8a3e7143cc16677c963d6cd"
                },
                {
                  "introduced": "1d4361b0f344188ab5eec6dcea01f61a3a3a1670"
                },
                {
                  "fixed": "cae598d9980661a978e2df4fb338518f7bf09572"
                },
                {
                  "fixed": "1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404"
                },
                {
                  "fixed": "a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.14.0"
                      },
                      {
                        "fixed": "2.14.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.15.0"
                      },
                      {
                        "fixed": "2.15.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.16.0"
                      },
                      {
                        "fixed": "2.16.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.17.0"
                      },
                      {
                        "fixed": "2.17.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.18.0"
                      },
                      {
                        "fixed": "2.18.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.19.0"
                      },
                      {
                        "fixed": "2.19.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.15.0",
            "v2.17.0",
            "v2.18.0",
            "v2.19.0",
            "v2.17.1",
            "v2.16.4",
            "v2.15.2",
            "v2.14.4",
            "v2.16.3",
            "v2.14.3",
            "v2.16.2",
            "v2.16.1",
            "v2.16.0",
            "v2.15.1",
            "v2.14.2",
            "v2.14.0",
            "v2.14.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-17456.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-17456-2df45b27",
                "digest": {
                  "length": 653,
                  "function_hash": "280767856758277171414092295284574468787"
                },
                "source": "https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404",
                "target": {
                  "file": "fsck.c",
                  "function": "fsck_gitmodules_fn"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-17456-6395f845",
                "digest": {
                  "length": 464,
                  "function_hash": "74687755865234334360883501852567920378"
                },
                "source": "https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46",
                "target": {
                  "file": "fsck.c",
                  "function": "fsck_gitmodules_fn"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-17456-f3198db8",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "61187277327173978608487490955699247805",
                    "322478933031989535159482901598085121490",
                    "105640845193175585999041621410241546937",
                    "320863403475869972817195883113195046675",
                    "112056197659761133531585212977590424954",
                    "186663816293050747954242156545984267682",
                    "206904128480667008530182138888978574630",
                    "191728292391714541701984138567608141284"
                  ]
                },
                "source": "https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404",
                "target": {
                  "file": "fsck.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-17456-ff58f248",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "217918380924176957102810654075341599196",
                    "117753730928290908950277960920988579234",
                    "238564133705298630809711888480831625193",
                    "40793998524149642212331206026820467726",
                    "131744534305363149181561143635993325041",
                    "118269845443441089115293841204093565177",
                    "154178865154027729581994095520201329671",
                    "45981377794252269677761437338334550314"
                  ]
                },
                "source": "https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46",
                "target": {
                  "file": "fsck.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:12:16Z"
          }
        }
      ],
      "modified": "2026-10-24T14:12:16.653039007Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2018:3408",
        "https://access.redhat.com/errata/RHSA-2018:3505",
        "https://access.redhat.com/errata/RHSA-2018:3541",
        "https://access.redhat.com/errata/RHSA-2020:0316",
        "https://marc.info/?l=git&m=153875888916397&w=2",
        "https://seclists.org/bugtraq/2019/Mar/30",
        "https://usn.ubuntu.com/3791-1/",
        "https://www.debian.org/security/2018/dsa-4311",
        "https://www.openwall.com/lists/oss-security/2018/10/06/3",
        "https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404",
        "https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46",
        "https://www.exploit-db.com/exploits/45548/",
        "https://www.exploit-db.com/exploits/45631/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "git-scm:git",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.14.0"
                  },
                  {
                    "fixed": "2.14.5"
                  },
                  {
                    "introduced": "2.15.0"
                  },
                  {
                    "fixed": "2.15.3"
                  },
                  {
                    "introduced": "2.16.0"
                  },
                  {
                    "fixed": "2.16.5"
                  },
                  {
                    "introduced": "2.17.0"
                  },
                  {
                    "fixed": "2.17.2"
                  },
                  {
                    "introduced": "2.18.0"
                  },
                  {
                    "fixed": "2.18.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:ansible_tower:3.3:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:ansible_tower",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.3"
                  },
                  {
                    "last_affected": "3.3"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:6.7:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:7.3:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "6.0"
                  },
                  {
                    "last_affected": "6.0"
                  },
                  {
                    "introduced": "6.7"
                  },
                  {
                    "last_affected": "6.7"
                  },
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "7.3"
                  },
                  {
                    "last_affected": "7.3"
                  },
                  {
                    "introduced": "7.4"
                  },
                  {
                    "last_affected": "7.4"
                  },
                  {
                    "introduced": "7.5"
                  },
                  {
                    "last_affected": "7.5"
                  },
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_aus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_eus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_tus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-17456",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443380,
  "published_at": "2018-10-06T14:29:00.3+00:00"
}