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 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
git (PTS) | bullseye | 1:2.30.2-1+deb11u2 | fixed |
bullseye (security) | 1:2.30.2-1+deb11u3 | fixed | |
bookworm | 1:2.39.2-1.1 | fixed | |
bookworm (security) | 1:2.39.5-0+deb12u1 | fixed | |
sid, trixie | 1:2.45.2-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
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