Name | CVE-2018-11235 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-4212-1, ELA-1-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
git (PTS) | jessie, jessie (lts) | 1:2.1.4-2.1+deb8u14 | fixed |
stretch (security) | 1:2.11.0-3+deb9u7 | fixed | |
stretch (lts), stretch | 1:2.11.0-3+deb9u11 | fixed | |
buster (security), buster, buster (lts) | 1:2.20.1-2+deb10u9 | fixed | |
bullseye | 1:2.30.2-1+deb11u2 | fixed | |
bullseye (security) | 1:2.30.2-1+deb11u3 | fixed | |
bookworm (security), bookworm | 1:2.39.5-0+deb12u1 | fixed | |
trixie | 1:2.45.2-1 | fixed | |
sid | 1:2.45.2-1.2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
git | source | wheezy | 1:1.7.10.4-1+wheezy7 | ELA-1-1 | ||
git | source | jessie | 1:2.1.4-2.1+deb8u6 | DSA-4212-1 | ||
git | source | stretch | 1:2.11.0-3+deb9u3 | DSA-4212-1 | ||
git | source | (unstable) | 1:2.17.1-1 |
https://lkml.org/lkml/2018/5/29/889