Amazon Linux 2 Security Advisory: ALAS-2018-1035
Advisory Release Date: 2018-06-07 23:44 Pacific
Advisory Updated Date: 2018-06-11 22:09 Pacific
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, code to sanity-check pathnames on NTFS can result in reading out-of-bounds memory.(CVE-2018-11233)
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.(CVE-2018-11235)
Affected Packages:
git
Note:
This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update git to update your system.
noarch:
git-all-2.14.4-1.amzn2.noarch
gitweb-2.14.4-1.amzn2.noarch
git-p4-2.14.4-1.amzn2.noarch
git-cvs-2.14.4-1.amzn2.noarch
git-email-2.14.4-1.amzn2.noarch
git-gui-2.14.4-1.amzn2.noarch
gitk-2.14.4-1.amzn2.noarch
perl-Git-2.14.4-1.amzn2.noarch
perl-Git-SVN-2.14.4-1.amzn2.noarch
src:
git-2.14.4-1.amzn2.src
x86_64:
git-2.14.4-1.amzn2.x86_64
git-core-2.14.4-1.amzn2.x86_64
git-core-doc-2.14.4-1.amzn2.x86_64
git-daemon-2.14.4-1.amzn2.x86_64
git-svn-2.14.4-1.amzn2.x86_64
git-gnome-keyring-2.14.4-1.amzn2.x86_64
git-debuginfo-2.14.4-1.amzn2.x86_64