← All CVEs

CVE-2018-11235

high · 7.8

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.

7.8
CVSS
48.8%
EPSS (exploit prob.)
99th
EPSS percentile
2018-05-30
Published

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

Weaknesses

CWE-22

Affected products

VendorProductAffected versions
debiandebian_linux8.0
debiandebian_linux9.0
canonicalubuntu_linux14.04
canonicalubuntu_linux16.04
canonicalubuntu_linux17.10
canonicalubuntu_linux18.04
redhatenterprise_linux7.0
redhatenterprise_linux_desktop7.0
redhatenterprise_linux_server7.0
redhatenterprise_linux_server_eus7.5
redhatenterprise_linux_workstation7.0
git-scmgit<= 2.13.6
git-scmgit>= 2.14.0, <= 2.14.3
git-scmgit>= 2.15.0, <= 2.15.1
git-scmgit>= 2.16.0, <= 2.16.3
git-scmgit2.17.0
gitforwindowsgit<= 2.17.1

Check a specific version with /api/v1/cve/match.

References

Query this programmatically:

curl https://evil-db.io/api/v1/cve/CVE-2018-11235