Skip to content

CVE-2018-11235 In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote code execution can occur. With a crafted .gitmodules file, a malicious project....

HighCVSS 7.8 EPSS 47.4%
Published
Updated
Exploit status
No public exploit known

Description

In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote code execution can occur. With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs "git clone --recurse-submodules" because submodule "names" are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with "../" in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.

Affected products

ProductAffected versionsFixed in
debian/git(Debian:12) < 1:2.17.1-1 1:2.17.1-1
debian/git(Debian:13) < 1:2.17.1-1 1:2.17.1-1
debian/git(Debian:14) < 1:2.17.1-1 1:2.17.1-1
debian linux = 8.0 No fix listed
debian linux = 9.0 No fix listed
Canonical Ubuntu Linux = 14.04 No fix listed
Canonical Ubuntu Linux = 16.04 No fix listed
Canonical Ubuntu Linux = 17.10 No fix listed
Canonical Ubuntu Linux = 18.04 No fix listed
redhat enterprise linux = 7.0 No fix listed
redhat enterprise linux desktop = 7.0 No fix listed
redhat enterprise linux server = 7.0 No fix listed
redhat enterprise linux server eus = 7.5 No fix listed
redhat enterprise linux workstation = 7.0 No fix listed
git-scm git <= 2.13.6 No fix listed
git-scm git >= 2.14.0, <= 2.14.3 No fix listed
git-scm git >= 2.15.0, <= 2.15.1 No fix listed
git-scm git >= 2.16.0, <= 2.16.3 No fix listed
git-scm git = 2.17.0 No fix listed
gitforwindows git <= 2.17.1 No fix listed
alpine/git(Alpine:v3.10) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.11) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.12) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.13) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.14) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
Show 15 more
ProductAffected versionsFixed in
alpine/git(Alpine:v3.15) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.16) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.17) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.18) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.19) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.20) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.21) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.22) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.23) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.24) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.5) >= 2.14.0, < 2.11.3-r1 2.11.3-r1
alpine/git(Alpine:v3.6) >= 2.14.0, < 2.13.7 2.13.7
alpine/git(Alpine:v3.7) >= 2.14.0, < 2.15.2-r0 2.15.2-r0
alpine/git(Alpine:v3.8) >= 2.14.0, < 2.17.1-r0 2.17.1-r0
alpine/git(Alpine:v3.9) >= 2.14.0, < 2.17.1-r0 2.17.1-r0

References