Exploit database

Vulnerability

CVE-2018-17456

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.0 · NVD

Vector string

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

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.

CVE Program

Exploit source choices

4 sources
Malicious Git HTTP Server For CVE-2018-17456
MSF-multi--http--git_submodule_url_execMetasploitUnix / remote

This module exploits CVE-2018-17456, which affects Git versions 2.14.5, 2.15.3, 2.16.5, 2.17.2, 2.18.1, and 2.19.1 and lower. When a submodule url which starts with a dash e.g "-u./payload" is passed as an argument to git clone, the file "payload" inside the repository is executed. This module creates a fake git repository which contains a submodule containing the vulnerability. The vulnerability is triggered when the submodules are initialised (e.g git clone --recurse-submodules URL)

2018-10-05git_submodule_url_exec.rb
anonymking/cve-2018-17456
GH-135a5b6125c88c55f72cdb9e1cd67509GitHubUnofficial GitHub source

CVE-2018-17456漏洞复现(PoC+Exp)

2019-06-213 files · 5 stars